Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index c54cf56..ac7c321 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp | |||
@@ -31,3 +31,3 @@ | |||
31 | 31 | ||
32 | DingWidget::DingWidget(QWidget *parent, QString word, QTextBrowser *browser) : QWidget(parent) | 32 | DingWidget::DingWidget(QWidget *parent, QString word, QTextBrowser *browser_top, QTextBrowser *browser_bottom) : QWidget(parent) |
33 | { | 33 | { |
@@ -52,11 +52,13 @@ DingWidget::DingWidget(QWidget *parent, QString word, QTextBrowser *browser) : Q | |||
52 | //X } | 52 | //X } |
53 | browser->setText( parseInfo( lines ) ); | 53 | QString top, bottom; |
54 | |||
55 | parseInfo( lines, top , bottom ); | ||
56 | browser_top->setText( top ); | ||
57 | browser_bottom->setText( bottom ); | ||
54 | } | 58 | } |
55 | 59 | ||
56 | QString DingWidget::parseInfo( QStringList &lines ) | 60 | void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) |
57 | { | 61 | { |
58 | QString parsed = 0; | 62 | top = "blah"; |
59 | QStringList temp = lines; | 63 | bottom = lines.join( "\n" ); |
60 | parsed = temp.first(); | ||
61 | return parsed; | ||
62 | } | 64 | } |