summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/odict.cpp
Unidiff
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp
index 6c03ce3..166f6b9 100644
--- a/noncore/apps/odict/odict.cpp
+++ b/noncore/apps/odict/odict.cpp
@@ -44,13 +44,14 @@ ODict::ODict() : QMainWindow()
44 44
45 QHBox *hbox = new QHBox( vbox ); 45 QHBox *hbox = new QHBox( vbox );
46 QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); 46 QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show();
47 query_le = new QLineEdit( hbox ); 47 query_le = new QLineEdit( hbox );
48 ok_button = new QPushButton( tr( "&Ok" ), hbox ); 48 ok_button = new QPushButton( tr( "&Ok" ), hbox );
49 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); 49 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) );
50 browser = new QTextBrowser( vbox ); 50 browser_top = new QTextBrowser( vbox );
51 browser_bottom = new QTextBrowser( vbox );
51 52
52 loadConfig(); 53 loadConfig();
53 setCentralWidget( vbox ); 54 setCentralWidget( vbox );
54} 55}
55 56
56void ODict::loadConfig() 57void ODict::loadConfig()
@@ -79,13 +80,13 @@ void ODict::slotDisplayAbout()
79 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); 80 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) );
80} 81}
81 82
82void ODict::slotStartQuery() 83void ODict::slotStartQuery()
83{ 84{
84 QString querystring = query_le->text(); 85 QString querystring = query_le->text();
85 DingWidget *ding = new DingWidget( vbox , querystring , browser); 86 DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom);
86} 87}
87 88
88 89
89void ODict::slotSetErrorcount( int count ) 90void ODict::slotSetErrorcount( int count )
90{ 91{
91 errorTol = count; 92 errorTol = count;