From f1140315017f49805c4dafa495791e0810effb91 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 03 Jan 2003 23:05:43 +0000 Subject: display fix --- (limited to 'noncore') diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 61ddbbf..8ad0b16 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -64,7 +64,7 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) QString right; QRegExp reg_div( "\\" ); QRegExp reg_word( queryword ); - //rot: QString substitute = ""+queryword+""; + //QString substitute = ""+queryword+""; QString substitute = ""+queryword+""; QStringList toplist, bottomlist; for( QStringList::Iterator it = lines.begin() ; it != lines.end() ; ++it ) @@ -75,16 +75,17 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) if ( left.contains( reg_word ) ) { left.replace( queryword, substitute ); - toplist.append( left + " -> " + right); + toplist.append( "" + left + "" + right + "" ); } else { right.replace( reg_word, substitute ); - bottomlist.append( right + " -> " + left ); + bottomlist.append( "" + right + "" + left + "" ); } } //thats it, the lists are rendered. Lets put them in one string - bottom = bottomlist.join( "
\n" ); - top = toplist.join( "
\n" ); + + bottom = ""+bottomlist.join( "
" )+"
"; + top = ""+toplist.join( "
" )+"
"; } -- cgit v0.9.0.2