Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (ignore 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 @@ -37,16 +37,17 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa tab = new OTabWidget( this, "OTabWidget_tab", OTabWidget::Global, OTabWidget::Bottom ); vbox_layout->addWidget( tab ); /*general settings*/ settings_tab = new QWidget( tab , "settings_tab" ); /*searchmethods*/ search_tab = new QWidget( tab , "search_tab" ); + loadSearchMethodNames(); QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); QHBox *hbox = new QHBox( search_tab ); list = new QListView( hbox ); list->addColumn( tr( "Searchmethod" ) ); QVBox *vbox = new QVBox( hbox ); new_button = new QPushButton( "New" , vbox ); @@ -98,8 +99,16 @@ void ConfigDlg::slotChangeMethod() } void ConfigDlg::slotDeleteMethod() { if ( list->selectedItem() ) list->takeItem( list->selectedItem() ); else qDebug("no item selected"); } + +void ConfigDlg::loadSearchMethodNames() +{ + QListViewItem *item = new QListViewItem( list); + Config cfg( "odict" ); +//X cfg.setGroup( itemName ); +//X QString temp = cfg.readEntry( "Seperator" ); +} |