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() BroswerContent DingWidget::parseInfo() { - QStringList search = lines.grep( queryword ); + QStringList search = lines.grep( queryword , isCaseSensitive ); QString current; QString left; @@ -126,6 +126,7 @@ BroswerContent DingWidget::parseInfo() QString html_table_right = "</td></tr>"; QRegExp reg_div( trenner ); QRegExp reg_word( queryword ); + reg_word.setCaseSensitive( isCaseSensitive ); QStringList toplist, bottomlist; QString substitute = "<strong>"+queryword+"</strong>"; @@ -163,7 +164,7 @@ BroswerContent DingWidget::parseInfo() right = current.right( current.length() - current.find(trenner) -2 ); - if ( left.contains( queryword ) ) + if ( left.contains( queryword , isCaseSensitive ) ) { left.replace( queryword, substitute ); left = left + "-->" + right; |