Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index eba7dec..1608486 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -69,5 +69,5 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
69 | void ConfigDlg::writeEntries() | 69 | void ConfigDlg::writeEntries() |
70 | { | 70 | { |
71 | qDebug( "richtig beendet" ); | 71 | //XXX wozu gibt es diese Methode? |
72 | } | 72 | } |
73 | 73 | ||
@@ -77,10 +77,8 @@ void ConfigDlg::slotNewMethod() | |||
77 | if ( dlg.exec() == QDialog::Accepted ) | 77 | if ( dlg.exec() == QDialog::Accepted ) |
78 | { | 78 | { |
79 | //if ( !dlg.nameLE->text() ) return; //XXX | ||
80 | dlg.saveItem(); | 79 | dlg.saveItem(); |
81 | QListViewItem *item = new QListViewItem( list ); | 80 | QListViewItem *item = new QListViewItem( list ); |
82 | item->setText( 0 , dlg.nameLE->text() ); | 81 | item->setText( 0 , dlg.nameLE->text() ); |
83 | } | 82 | } |
84 | else qDebug( "SearchMethodDlg abgebrochen" ); | ||
85 | } | 83 | } |
86 | 84 | ||
@@ -92,12 +90,9 @@ void ConfigDlg::slotChangeMethod() | |||
92 | if ( dlg.exec() == QDialog::Accepted ) | 90 | if ( dlg.exec() == QDialog::Accepted ) |
93 | { | 91 | { |
94 | //if ( !dlg.nameLE->text() ) return; //XXX geht vielleich nicht | ||
95 | dlg.saveItem(); | 92 | dlg.saveItem(); |
96 | QListViewItem *item = list->selectedItem(); | 93 | QListViewItem *item = list->selectedItem(); |
97 | item->setText( 0 , dlg.nameLE->text() ); | 94 | item->setText( 0 , dlg.nameLE->text() ); |
98 | } | 95 | } |
99 | else qDebug( "SearchMethodDlg abgebrochen" ); | ||
100 | } | 96 | } |
101 | else qDebug( "kein item angewählt" ); | ||
102 | } | 97 | } |
103 | 98 | ||
@@ -113,5 +108,4 @@ void ConfigDlg::slotDeleteMethod() | |||
113 | list->takeItem( list->selectedItem() ); | 108 | list->takeItem( list->selectedItem() ); |
114 | } | 109 | } |
115 | else qDebug("no item selected"); | ||
116 | } | 110 | } |
117 | 111 | ||