Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/odict.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 549c40a..42604ee 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -91,13 +91,13 @@ void ODict::saveConfig() | |||
91 | cfg.writeEntry( "regexp" , regexp ); | 91 | cfg.writeEntry( "regexp" , regexp ); |
92 | cfg.writeEntry( "completewords" , completewords ); | 92 | cfg.writeEntry( "completewords" , completewords ); |
93 | } | 93 | } |
94 | 94 | ||
95 | void ODict::slotDisplayAbout() | 95 | void ODict::slotDisplayAbout() |
96 | { | 96 | { |
97 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030108" ) ); | 97 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030111" ) ); |
98 | } | 98 | } |
99 | 99 | ||
100 | void ODict::slotStartQuery() | 100 | void ODict::slotStartQuery() |
101 | { | 101 | { |
102 | QString querystring = query_le->text(); | 102 | QString querystring = query_le->text(); |
103 | //X qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); | 103 | //X qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); |
@@ -106,22 +106,20 @@ void ODict::slotStartQuery() | |||
106 | //X return; | 106 | //X return; |
107 | //X } | 107 | //X } |
108 | //X if (!activated_name || activated_name.isEmpty()) | 108 | //X if (!activated_name || activated_name.isEmpty()) |
109 | //X QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); | 109 | //X QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); |
110 | //X else | 110 | //X else |
111 | //X { | 111 | //X { |
112 | |||
113 | if ( casesens ) qDebug( "casesens = TRUE" ); | ||
114 | else qDebug( "casesens = FALSE" ); | ||
112 | 115 | ||
113 | ding->setCaseSensitive( casesens ); | 116 | ding->setCaseSensitive( casesens ); |
114 | ding->setCompleteWord( completewords ); | 117 | ding->setCompleteWord( completewords ); |
115 | ding->setDict( activated_name ); | 118 | ding->setDict( activated_name ); |
116 | 119 | ||
117 | qDebug( " activated_name ist :" ); | ||
118 | qDebug( activated_name ); | ||
119 | |||
120 | qDebug( " loadedDict() ist :" ); | ||
121 | qDebug( ding->loadedDict() ); | ||
122 | if ( activated_name != ding->loadedDict() ) | 120 | if ( activated_name != ding->loadedDict() ) |
123 | { | 121 | { |
124 | qDebug( "ComboBox geändert" ); | 122 | qDebug( "ComboBox geändert" ); |
125 | ding->loadDict(activated_name); | 123 | ding->loadDict(activated_name); |
126 | } | 124 | } |
127 | else qDebug( "ComboBox war GLEICH" ); | 125 | else qDebug( "ComboBox war GLEICH" ); |
@@ -129,15 +127,13 @@ void ODict::slotStartQuery() | |||
129 | BroswerContent test = ding->setText( querystring ); | 127 | BroswerContent test = ding->setText( querystring ); |
130 | 128 | ||
131 | browser_top->setText( test.top ); | 129 | browser_top->setText( test.top ); |
132 | browser_bottom->setText( test.bottom ); | 130 | browser_bottom->setText( test.bottom ); |
133 | 131 | ||
134 | qDebug( "Text sollte gesetzt sein..." ); | 132 | qDebug( "Text sollte gesetzt sein..." ); |
135 | |||
136 | //X } | 133 | //X } |
137 | |||
138 | } | 134 | } |
139 | 135 | ||
140 | 136 | ||
141 | void ODict::slotSetErrorcount( int count ) | 137 | void ODict::slotSetErrorcount( int count ) |
142 | { | 138 | { |
143 | errorTol = count; | 139 | errorTol = count; |