summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/odict.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp9
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
@@ -33,4 +33,5 @@
#include <qaction.h>
#include <qtextbrowser.h>
+#include <qcombobox.h>
#include <qpe/resource.h>
@@ -46,4 +47,5 @@ ODict::ODict() : QMainWindow()
QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show();
query_le = new QLineEdit( hbox );
+ query_co = new QComboBox( hbox );
ok_button = new QPushButton( tr( "&Ok" ), hbox );
connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) );
@@ -63,4 +65,11 @@ void ODict::loadConfig()
regexp = cfg.readEntry( "regexp" ).toInt();
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" ) );
+ }
}