summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/odict.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp17
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 @@
#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() ) );
-
- setCentralWidget( hbox );
+ browser = new QTextBrowser( vbox );
+
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);
}