From de71690306857498edcf1036123452c7321d1588 Mon Sep 17 00:00:00 2001 From: cniehaus Date: Fri, 03 Jan 2003 18:27:56 +0000 Subject: I won't get a nobelprize for this code but at least it works --- (limited to 'noncore/apps/odict/odict.cpp') 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 @@ -16,37 +16,41 @@ **************************************************************************/ #include "odict.h" #include "configdlg.h" +#include "dingwidget.h" -#include - +#include #include #include #include #include #include +#include #include #include #include #include #include #include +#include #include ODict::ODict() : QMainWindow() { + vbox = new QVBox( this ); setCaption( tr( "OPIE-Dictionary" ) ); setupMenus(); - QHBox *hbox = new QHBox( this ); + QHBox *hbox = new QHBox( vbox ); QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); query_le = new QLineEdit( hbox ); ok_button = new QPushButton( tr( "&Ok" ), hbox ); connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); - - setCentralWidget( hbox ); + browser = new QTextBrowser( vbox ); + loadConfig(); + setCentralWidget( vbox ); } void ODict::loadConfig() @@ -72,12 +76,13 @@ void ODict::saveConfig() 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" ) ); } void ODict::slotStartQuery() { QString querystring = query_le->text(); + DingWidget *ding = new DingWidget( vbox , querystring , browser); } -- cgit v0.9.0.2