From 28b06247aaa55f80d91be1f8591e2cc30bac29d3 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 03 Jan 2003 23:20:17 +0000 Subject: clean up --- (limited to 'noncore/apps/odict/dingwidget.cpp') diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 8ad0b16..8f5a7ae 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -62,6 +62,11 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) QString current; QString left; QString right; + QString html_header = ""; + QString html_footer = "
"; + QString html_table_left = ""; + QString html_table_sep = ""; + QString html_table_right = ""; QRegExp reg_div( "\\" ); QRegExp reg_word( queryword ); //QString substitute = ""+queryword+""; @@ -75,17 +80,16 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) if ( left.contains( reg_word ) ) { left.replace( queryword, substitute ); - toplist.append( "" + left + "" + right + "" ); + toplist.append( html_table_left + left + html_table_sep + right + html_table_right ); } else { right.replace( reg_word, substitute ); - bottomlist.append( "" + right + "" + left + "" ); + bottomlist.append( html_table_left + right + html_table_sep + left + html_table_right ); } } //thats it, the lists are rendered. Lets put them in one string - - bottom = ""+bottomlist.join( "
" )+"
"; - top = ""+toplist.join( "
" )+"
"; + bottom = html_header + bottomlist.join( "
" ) + html_footer; + top = html_header + toplist.join( "
" ) + html_footer; } -- cgit v0.9.0.2