-rw-r--r-- | noncore/apps/odict/odict.cpp | 15 |
1 files changed, 10 insertions, 5 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 @@ #include "configdlg.h" +#include "dingwidget.h" -#include <opie/otabwidget.h> - +#include <qlayout.h> #include <qpopupmenu.h> @@ -26,2 +26,3 @@ #include <qhbox.h> +#include <qvbox.h> #include <qlabel.h> @@ -32,2 +33,3 @@ #include <qaction.h> +#include <qtextbrowser.h> @@ -38,2 +40,3 @@ ODict::ODict() : QMainWindow() { + vbox = new QVBox( this ); setCaption( tr( "OPIE-Dictionary" ) ); @@ -41,3 +44,3 @@ ODict::ODict() : QMainWindow() - QHBox *hbox = new QHBox( this ); + QHBox *hbox = new QHBox( vbox ); QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); @@ -46,5 +49,6 @@ ODict::ODict() : QMainWindow() connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); + browser = new QTextBrowser( vbox ); - setCentralWidget( hbox ); loadConfig(); + setCentralWidget( vbox ); } @@ -74,3 +78,3 @@ void ODict::slotDisplayAbout() { - QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20021230" ) ); + QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); } @@ -80,2 +84,3 @@ void ODict::slotStartQuery() QString querystring = query_le->text(); + DingWidget *ding = new DingWidget( vbox , querystring , browser); } |