author | cniehaus <cniehaus> | 2003-01-03 22:31:19 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-01-03 22:31:19 (UTC) |
commit | da1889933ccd03ef948fef7debda0b7e13f12add (patch) (side-by-side diff) | |
tree | 98df5c800d091800f1264dcbd601b951b0522a96 /noncore/apps/odict/dingwidget.cpp | |
parent | 5c6c68a2297762fe69ac6d1bd62fd0e09afeccb3 (diff) | |
download | opie-da1889933ccd03ef948fef7debda0b7e13f12add.zip opie-da1889933ccd03ef948fef7debda0b7e13f12add.tar.gz opie-da1889933ccd03ef948fef7debda0b7e13f12add.tar.bz2 |
minifixes to avoid clashes with tille
Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 6e3179f..61ddbbf 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -69,20 +69,22 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) QStringList toplist, bottomlist; for( QStringList::Iterator it = lines.begin() ; it != lines.end() ; ++it ) { current = *it; left = current.left( current.find(reg_div) ); right = current.right( current.length() - current.find(reg_div) - 1 ); - if ( left.contains( reg_word ) ){ + if ( left.contains( reg_word ) ) + { left.replace( queryword, substitute ); toplist.append( left + " -> " + right); - }else{ + } + else + { right.replace( reg_word, substitute ); bottomlist.append( right + " -> " + left ); } - // .replace( reg_word, substitute ); } //thats it, the lists are rendered. Lets put them in one string bottom = bottomlist.join( "<br>\n" ); top = toplist.join( "<br>\n" ); } |