Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/odict.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 0412807..6c03ce3 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -18,5 +18,5 @@ | |||
18 | #include "configdlg.h" | 18 | #include "configdlg.h" |
19 | #include "dingwidget.h" | ||
19 | 20 | ||
20 | #include <opie/otabwidget.h> | 21 | #include <qlayout.h> |
21 | |||
22 | #include <qpopupmenu.h> | 22 | #include <qpopupmenu.h> |
@@ -26,2 +26,3 @@ | |||
26 | #include <qhbox.h> | 26 | #include <qhbox.h> |
27 | #include <qvbox.h> | ||
27 | #include <qlabel.h> | 28 | #include <qlabel.h> |
@@ -32,2 +33,3 @@ | |||
32 | #include <qaction.h> | 33 | #include <qaction.h> |
34 | #include <qtextbrowser.h> | ||
33 | 35 | ||
@@ -38,2 +40,3 @@ ODict::ODict() : QMainWindow() | |||
38 | { | 40 | { |
41 | vbox = new QVBox( this ); | ||
39 | setCaption( tr( "OPIE-Dictionary" ) ); | 42 | setCaption( tr( "OPIE-Dictionary" ) ); |
@@ -41,3 +44,3 @@ ODict::ODict() : QMainWindow() | |||
41 | 44 | ||
42 | QHBox *hbox = new QHBox( this ); | 45 | QHBox *hbox = new QHBox( vbox ); |
43 | QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); | 46 | QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); |
@@ -46,5 +49,6 @@ ODict::ODict() : QMainWindow() | |||
46 | connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); | 49 | connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); |
47 | 50 | browser = new QTextBrowser( vbox ); | |
48 | setCentralWidget( hbox ); | 51 | |
49 | loadConfig(); | 52 | loadConfig(); |
53 | setCentralWidget( vbox ); | ||
50 | } | 54 | } |
@@ -74,3 +78,3 @@ void ODict::slotDisplayAbout() | |||
74 | { | 78 | { |
75 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20021230" ) ); | 79 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); |
76 | } | 80 | } |
@@ -80,2 +84,3 @@ void ODict::slotStartQuery() | |||
80 | QString querystring = query_le->text(); | 84 | QString querystring = query_le->text(); |
85 | DingWidget *ding = new DingWidget( vbox , querystring , browser); | ||
81 | } | 86 | } |