author | cniehaus <cniehaus> | 2003-04-30 20:42:51 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-04-30 20:42:51 (UTC) |
commit | 30c685f9da06d19c993e9bdb74f349dabbde063e (patch) (unidiff) | |
tree | a6b0a6e220a6d523dd57b45feb755ce64bd84a8e | |
parent | 5aa8548fd812e4a9b942d6c858c68840fe58f871 (diff) | |
download | opie-30c685f9da06d19c993e9bdb74f349dabbde063e.zip opie-30c685f9da06d19c993e9bdb74f349dabbde063e.tar.gz opie-30c685f9da06d19c993e9bdb74f349dabbde063e.tar.bz2 |
juhu, it is working again
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 16164ed..f012333 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp | |||
@@ -118,7 +118,8 @@ BroswerContent DingWidget::parseInfo() | |||
118 | QRegExp reg_word( queryword ); | 118 | QRegExp reg_word( queryword ); |
119 | reg_word.setCaseSensitive( isCaseSensitive ); | 119 | reg_word.setCaseSensitive( isCaseSensitive ); |
120 | QStringList toplist, bottomlist; | 120 | QStringList toplist, bottomlist; |
121 | QString substitute = "<strong>"+queryword+"</strong>"; | 121 | //QString substitute = "<strong>"+queryword+"</strong>"; |
122 | QString substitute = queryword; | ||
122 | 123 | ||
123 | for( QStringList::Iterator it = search.begin() ; it != search.end() ; ++it ) | 124 | for( QStringList::Iterator it = search.begin() ; it != search.end() ; ++it ) |
124 | { | 125 | { |
@@ -130,13 +131,13 @@ BroswerContent DingWidget::parseInfo() | |||
130 | if ( left.contains( queryword , isCaseSensitive ) ) | 131 | if ( left.contains( queryword , isCaseSensitive ) ) |
131 | { | 132 | { |
132 | left.replace( queryword, substitute ); | 133 | left.replace( queryword, substitute ); |
133 | left = left + " -- " + right; | 134 | left = left + " --> " + right; |
134 | toplist.append( left ); | 135 | toplist.append( left ); |
135 | } | 136 | } |
136 | else | 137 | else |
137 | { | 138 | { |
138 | right.replace( queryword, substitute ); | 139 | right.replace( queryword, substitute ); |
139 | left = right + " -- " + left; | 140 | right = right + " --> " + left; |
140 | bottomlist.append( right ); | 141 | bottomlist.append( right ); |
141 | } | 142 | } |
142 | } | 143 | } |