summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/dingwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp
index de02dcc..6e3179f 100644
--- a/noncore/apps/odict/dingwidget.cpp
+++ b/noncore/apps/odict/dingwidget.cpp
@@ -61,13 +61,14 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom )
61 61
62 QString current; 62 QString current;
63 QString left; 63 QString left;
64 QString right; 64 QString right;
65 QRegExp reg_div( "\\" ); 65 QRegExp reg_div( "\\" );
66 QRegExp reg_word( queryword ); 66 QRegExp reg_word( queryword );
67 QString substitute = "<font color='#FF0000'>"+queryword+"</font>"; 67 //rot:QString substitute = "<font color='#FF0000'>"+queryword+"</font>";
68 QString substitute = "<a href=''>"+queryword+"</a>";
68 QStringList toplist, bottomlist; 69 QStringList toplist, bottomlist;
69 for( QStringList::Iterator it = lines.begin() ; it != lines.end() ; ++it ) 70 for( QStringList::Iterator it = lines.begin() ; it != lines.end() ; ++it )
70 { 71 {
71 current = *it; 72 current = *it;
72 left = current.left( current.find(reg_div) ); 73 left = current.left( current.find(reg_div) );
73 right = current.right( current.length() - current.find(reg_div) - 1 ); 74 right = current.right( current.length() - current.find(reg_div) - 1 );