author | cniehaus <cniehaus> | 2003-05-02 22:10:18 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-05-02 22:10:18 (UTC) |
commit | e83acc761bfe83ccd80b8ef6ab1275ee5c26e14f (patch) (unidiff) | |
tree | 6211385225d342dc9062615f080d5764d7251beb /noncore/apps/odict/configdlg.cpp | |
parent | adefcec2af37482266dbbd0e56b7e57f483c0540 (diff) | |
download | opie-e83acc761bfe83ccd80b8ef6ab1275ee5c26e14f.zip opie-e83acc761bfe83ccd80b8ef6ab1275ee5c26e14f.tar.gz opie-e83acc761bfe83ccd80b8ef6ab1275ee5c26e14f.tar.bz2 |
265 lines diff :) mostly markupstuff. But also one bug less
Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (show 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 | |||
@@ -68,7 +68,7 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
68 | 68 | ||
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 | ||
74 | void ConfigDlg::slotNewMethod() | 74 | void ConfigDlg::slotNewMethod() |
@@ -76,12 +76,10 @@ void ConfigDlg::slotNewMethod() | |||
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 | ||
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 | ||
87 | void ConfigDlg::slotChangeMethod() | 85 | void ConfigDlg::slotChangeMethod() |
@@ -91,14 +89,11 @@ void ConfigDlg::slotChangeMethod() | |||
91 | SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) ); | 89 | SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) ); |
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 | ||
104 | void ConfigDlg::slotDeleteMethod() | 99 | void ConfigDlg::slotDeleteMethod() |
@@ -112,7 +107,6 @@ void ConfigDlg::slotDeleteMethod() | |||
112 | 107 | ||
113 | list->takeItem( list->selectedItem() ); | 108 | list->takeItem( list->selectedItem() ); |
114 | } | 109 | } |
115 | else qDebug("no item selected"); | ||
116 | } | 110 | } |
117 | 111 | ||
118 | void ConfigDlg::loadSearchMethodNames() | 112 | void ConfigDlg::loadSearchMethodNames() |