Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index 2056457..0f33ee8 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -39,12 +39,13 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
39 | 39 | ||
40 | /*general settings*/ | 40 | /*general settings*/ |
41 | settings_tab = new QWidget( tab , "settings_tab" ); | 41 | settings_tab = new QWidget( tab , "settings_tab" ); |
42 | 42 | ||
43 | /*searchmethods*/ | 43 | /*searchmethods*/ |
44 | search_tab = new QWidget( tab , "search_tab" ); | 44 | search_tab = new QWidget( tab , "search_tab" ); |
45 | loadSearchMethodNames(); | ||
45 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); | 46 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); |
46 | 47 | ||
47 | QHBox *hbox = new QHBox( search_tab ); | 48 | QHBox *hbox = new QHBox( search_tab ); |
48 | list = new QListView( hbox ); | 49 | list = new QListView( hbox ); |
49 | list->addColumn( tr( "Searchmethod" ) ); | 50 | list->addColumn( tr( "Searchmethod" ) ); |
50 | 51 | ||
@@ -100,6 +101,14 @@ void ConfigDlg::slotChangeMethod() | |||
100 | void ConfigDlg::slotDeleteMethod() | 101 | void ConfigDlg::slotDeleteMethod() |
101 | { | 102 | { |
102 | if ( list->selectedItem() ) | 103 | if ( list->selectedItem() ) |
103 | list->takeItem( list->selectedItem() ); | 104 | list->takeItem( list->selectedItem() ); |
104 | else qDebug("no item selected"); | 105 | else qDebug("no item selected"); |
105 | } | 106 | } |
107 | |||
108 | void ConfigDlg::loadSearchMethodNames() | ||
109 | { | ||
110 | QListViewItem *item = new QListViewItem( list); | ||
111 | Config cfg( "odict" ); | ||
112 | //X cfg.setGroup( itemName ); | ||
113 | //X QString temp = cfg.readEntry( "Seperator" ); | ||
114 | } | ||