-rw-r--r-- | noncore/apps/odict/odict.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 166f6b9..7de9169 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp @@ -34,2 +34,3 @@ #include <qtextbrowser.h> +#include <qcombobox.h> @@ -47,2 +48,3 @@ ODict::ODict() : QMainWindow() query_le = new QLineEdit( hbox ); + query_co = new QComboBox( hbox ); ok_button = new QPushButton( tr( "&Ok" ), hbox ); @@ -64,2 +66,9 @@ void ODict::loadConfig() completewords = cfg.readEntry( "completewords" ).toInt(); + + QStringList groupListCfg = cfg.groupList().grep( "Method_" ); + for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) + { + cfg.setGroup( *it ); + query_co->insertItem( cfg.readEntry( "Name" ) ); + } } |