summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/configdlg.cpp
Unidiff
Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/configdlg.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp
index 89bc6f6..eba7dec 100644
--- a/noncore/apps/odict/configdlg.cpp
+++ b/noncore/apps/odict/configdlg.cpp
@@ -67,38 +67,40 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa
67} 67}
68 68
69void ConfigDlg::writeEntries() 69void ConfigDlg::writeEntries()
70{ 70{
71 qDebug( "richtig beendet" ); 71 qDebug( "richtig beendet" );
72} 72}
73 73
74void ConfigDlg::slotNewMethod() 74void ConfigDlg::slotNewMethod()
75{ 75{
76 SearchMethodDlg dlg( this, "SearchMethodDlg", true ); 76 SearchMethodDlg dlg( this, "SearchMethodDlg", true );
77 if ( dlg.exec() == QDialog::Accepted ) 77 if ( dlg.exec() == QDialog::Accepted )
78 { 78 {
79 //if ( !dlg.nameLE->text() ) return; //XXX
79 dlg.saveItem(); 80 dlg.saveItem();
80 QListViewItem *item = new QListViewItem( list ); 81 QListViewItem *item = new QListViewItem( list );
81 item->setText( 0 , dlg.nameLE->text() ); 82 item->setText( 0 , dlg.nameLE->text() );
82 } 83 }
83 else qDebug( "SearchMethodDlg abgebrochen" ); 84 else qDebug( "SearchMethodDlg abgebrochen" );
84} 85}
85 86
86void ConfigDlg::slotChangeMethod() 87void ConfigDlg::slotChangeMethod()
87{ 88{
88 if ( list->selectedItem() ) 89 if ( list->selectedItem() )
89 { 90 {
90 SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) ); 91 SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) );
91 if ( dlg.exec() == QDialog::Accepted ) 92 if ( dlg.exec() == QDialog::Accepted )
92 { 93 {
94 //if ( !dlg.nameLE->text() ) return; //XXX geht vielleich nicht
93 dlg.saveItem(); 95 dlg.saveItem();
94 QListViewItem *item = list->selectedItem(); 96 QListViewItem *item = list->selectedItem();
95 item->setText( 0 , dlg.nameLE->text() ); 97 item->setText( 0 , dlg.nameLE->text() );
96 } 98 }
97 else qDebug( "SearchMethodDlg abgebrochen" ); 99 else qDebug( "SearchMethodDlg abgebrochen" );
98 } 100 }
99 else qDebug( "kein item angewählt" ); 101 else qDebug( "kein item angewählt" );
100} 102}
101 103
102void ConfigDlg::slotDeleteMethod() 104void ConfigDlg::slotDeleteMethod()
103{ 105{
104 if ( list->selectedItem() ) 106 if ( list->selectedItem() )