-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/odict/dingwidget.h | 3 | ||||
-rw-r--r-- | noncore/apps/odict/odict.cpp | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 55a716d..c804385 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp | |||
@@ -36,3 +36,2 @@ void DingWidget::loadDict( QString name ) | |||
36 | //remove the old one | 36 | //remove the old one |
37 | qDebug( "DingWidget::loadDict( ... )" ); | ||
38 | 37 | ||
@@ -51,2 +50,5 @@ void DingWidget::loadDict( QString name ) | |||
51 | } | 50 | } |
51 | |||
52 | setDict( name ); | ||
53 | |||
52 | loadValues(); | 54 | loadValues(); |
@@ -81,2 +83,3 @@ void DingWidget::loadValues() | |||
81 | trenner = cfg.readEntry( "Seperator" ); | 83 | trenner = cfg.readEntry( "Seperator" ); |
84 | |||
82 | lang1_name = cfg.readEntry( "Lang1" ); | 85 | lang1_name = cfg.readEntry( "Lang1" ); |
@@ -109,3 +112,3 @@ BroswerContent DingWidget::parseInfo() | |||
109 | left = current.left( current.find( trenner ) ); | 112 | left = current.left( current.find( trenner ) ); |
110 | 113 | ||
111 | right = current.right( current.length() - current.find(trenner) - trenner.length() ); | 114 | right = current.right( current.length() - current.find(trenner) - trenner.length() ); |
@@ -118,3 +121,3 @@ BroswerContent DingWidget::parseInfo() | |||
118 | } | 121 | } |
119 | else | 122 | else if( right.contains( queryword , isCaseSensitive ) ) |
120 | { | 123 | { |
diff --git a/noncore/apps/odict/dingwidget.h b/noncore/apps/odict/dingwidget.h index dbb55e2..9163a43 100644 --- a/noncore/apps/odict/dingwidget.h +++ b/noncore/apps/odict/dingwidget.h | |||
@@ -26,3 +26,2 @@ class DingWidget | |||
26 | void setCaseSensitive( bool ); | 26 | void setCaseSensitive( bool ); |
27 | void setCompleteWord( bool ); | ||
28 | void loadDict( QString ); | 27 | void loadDict( QString ); |
@@ -37,2 +36,3 @@ class DingWidget | |||
37 | bool isCaseSensitive; | 36 | bool isCaseSensitive; |
37 | |||
38 | private: | 38 | private: |
@@ -41,3 +41,2 @@ class DingWidget | |||
41 | BroswerContent s_strings; | 41 | BroswerContent s_strings; |
42 | bool isCompleteWord; | ||
43 | 42 | ||
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index c1de6ac..2028701 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -63,3 +63,2 @@ ODict::ODict() : QMainWindow() | |||
63 | ding = new DingWidget(); | 63 | ding = new DingWidget(); |
64 | ding->loadValues(); | ||
65 | 64 | ||
@@ -110,2 +109,3 @@ void ODict::loadConfig() | |||
110 | ding->loadDict( lastname ); | 109 | ding->loadDict( lastname ); |
110 | ding->loadValues(); | ||
111 | 111 | ||
@@ -201,6 +201,2 @@ void ODict::slotMethodChanged( const QString& methodnumber ) | |||
201 | 201 | ||
202 | qDebug( "activated_name in slotMethodChanged() ist:" ); | ||
203 | qDebug( activated_name ); | ||
204 | qDebug( ding->loadedDict() ); | ||
205 | |||
206 | if ( activated_name != ding->loadedDict() ) | 202 | if ( activated_name != ding->loadedDict() ) |