Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 7abad22..5b5d731 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp | |||
@@ -114,7 +114,7 @@ void DingWidget::loadValues() | |||
114 | 114 | ||
115 | BroswerContent DingWidget::parseInfo() | 115 | BroswerContent DingWidget::parseInfo() |
116 | { | 116 | { |
117 | QStringList search = lines.grep( queryword ); | 117 | QStringList search = lines.grep( queryword , isCaseSensitive ); |
118 | 118 | ||
119 | QString current; | 119 | QString current; |
120 | QString left; | 120 | QString left; |
@@ -126,6 +126,7 @@ BroswerContent DingWidget::parseInfo() | |||
126 | QString html_table_right = "</td></tr>"; | 126 | QString html_table_right = "</td></tr>"; |
127 | QRegExp reg_div( trenner ); | 127 | QRegExp reg_div( trenner ); |
128 | QRegExp reg_word( queryword ); | 128 | QRegExp reg_word( queryword ); |
129 | reg_word.setCaseSensitive( isCaseSensitive ); | ||
129 | QStringList toplist, bottomlist; | 130 | QStringList toplist, bottomlist; |
130 | QString substitute = "<strong>"+queryword+"</strong>"; | 131 | QString substitute = "<strong>"+queryword+"</strong>"; |
131 | 132 | ||
@@ -163,7 +164,7 @@ BroswerContent DingWidget::parseInfo() | |||
163 | 164 | ||
164 | right = current.right( current.length() - current.find(trenner) -2 ); | 165 | right = current.right( current.length() - current.find(trenner) -2 ); |
165 | 166 | ||
166 | if ( left.contains( queryword ) ) | 167 | if ( left.contains( queryword , isCaseSensitive ) ) |
167 | { | 168 | { |
168 | left.replace( queryword, substitute ); | 169 | left.replace( queryword, substitute ); |
169 | left = left + "-->" + right; | 170 | left = left + "-->" + right; |