From da1889933ccd03ef948fef7debda0b7e13f12add Mon Sep 17 00:00:00 2001 From: cniehaus Date: Fri, 03 Jan 2003 22:31:19 +0000 Subject: minifixes to avoid clashes with tille --- (limited to 'noncore/apps/odict/odict.cpp') 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 @@ -32,6 +32,7 @@ #include #include #include +#include #include @@ -45,6 +46,7 @@ ODict::ODict() : QMainWindow() QHBox *hbox = new QHBox( vbox ); 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() ) ); browser_top = new QTextBrowser( vbox ); @@ -62,6 +64,13 @@ void ODict::loadConfig() casesens = cfg.readEntry( "casesens" ).toInt(); 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" ) ); + } } -- cgit v0.9.0.2