Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (show whitespace changes)
-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 | } |