author | tille <tille> | 2003-01-03 22:16:52 (UTC) |
---|---|---|
committer | tille <tille> | 2003-01-03 22:16:52 (UTC) |
commit | 342292813524e2721346003b0f9f70aeaa92c740 (patch) (unidiff) | |
tree | 6ee439fd798839f0e12e6173dee3d3898ed37666 | |
parent | bd02568a9a02f27b40c62ae8f56f4ce76bcb62da (diff) | |
download | opie-342292813524e2721346003b0f9f70aeaa92c740.zip opie-342292813524e2721346003b0f9f70aeaa92c740.tar.gz opie-342292813524e2721346003b0f9f70aeaa92c740.tar.bz2 |
got it :-D
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 3 |
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 ); |