Skip to content

Commit

Permalink
clean: delete an outdated TODO note
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Feb 8, 2025
1 parent d70ab6a commit 4ff52b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ui/edit_sources_models.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ Sources::Sources( QWidget * parent, Config::Class const & cfg ):
Config::Lingua const & lingua = cfg.lingua;
Config::Forvo const & forvo = cfg.forvo;

// TODO: will programTypeEditorCreator and itemEditorFactory be destroyed by
// anyone?
QItemEditorCreatorBase * programTypeEditorCreator = new QStandardItemEditorCreator< ProgramTypeEditor >();

itemEditorFactory->registerEditor( QMetaType::Int, programTypeEditorCreator );
// itemEditorFactory owns the ProgramTypeEditor
itemEditorFactory->registerEditor( QMetaType::Int, new QStandardItemEditorCreator< ProgramTypeEditor >() );

itemDelegate->setItemEditorFactory( itemEditorFactory.get() );

Expand Down

0 comments on commit 4ff52b6

Please sign in to comment.