author | cniehaus <cniehaus> | 2003-01-01 19:11:32 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-01-01 19:11:32 (UTC) |
commit | 2736ce30d565270495050cec2831d3f31b5c90a0 (patch) (unidiff) | |
tree | 1e9d98a7da5928b2527e42a7339022a9dd7f59ea | |
parent | 19ea383f6c848848a53adbbf4e6a32ea978b81ce (diff) | |
download | opie-2736ce30d565270495050cec2831d3f31b5c90a0.zip opie-2736ce30d565270495050cec2831d3f31b5c90a0.tar.gz opie-2736ce30d565270495050cec2831d3f31b5c90a0.tar.bz2 |
load the methods
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index 0f33ee8..33296e3 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -29,2 +29,3 @@ | |||
29 | #include <qlineedit.h> | 29 | #include <qlineedit.h> |
30 | #include <qstringlist.h> | ||
30 | 31 | ||
@@ -44,3 +45,2 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
44 | search_tab = new QWidget( tab , "search_tab" ); | 45 | search_tab = new QWidget( tab , "search_tab" ); |
45 | loadSearchMethodNames(); | ||
46 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); | 46 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); |
@@ -50,2 +50,3 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
50 | list->addColumn( tr( "Searchmethod" ) ); | 50 | list->addColumn( tr( "Searchmethod" ) ); |
51 | loadSearchMethodNames(); | ||
51 | 52 | ||
@@ -109,6 +110,10 @@ void ConfigDlg::loadSearchMethodNames() | |||
109 | { | 110 | { |
110 | QListViewItem *item = new QListViewItem( list); | ||
111 | Config cfg( "odict" ); | 111 | Config cfg( "odict" ); |
112 | //X cfg.setGroup( itemName ); | 112 | QStringList groupListCfg = cfg.groupList().grep( "Method_" ); |
113 | //X QString temp = cfg.readEntry( "Seperator" ); | 113 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) |
114 | { | ||
115 | QListViewItem *item = new QListViewItem( list ); | ||
116 | cfg.setGroup( *it ); | ||
117 | item->setText( 0 , cfg.readEntry( "Name" ) ); | ||
118 | } | ||
114 | } | 119 | } |