From e8697a4281f7a265b69e6bf5253383c73a38626b Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 29 Oct 2003 16:45:13 +0000 Subject: merge noncore/tools/* --- (limited to 'noncore/tools/euroconv/main.cpp') diff --git a/noncore/tools/euroconv/main.cpp b/noncore/tools/euroconv/main.cpp index 7d69535..b765a5e 100644 --- a/noncore/tools/euroconv/main.cpp +++ b/noncore/tools/euroconv/main.cpp @@ -9,31 +9,29 @@ * * Requirements: Qt * - * $Id$ * ***************************************************************************/ #include #include -//#include #include "calcdisplay.h" #include "calckeypad.h" +#include - -int main( int argc, char **argv ) { - - QPEApplication app( argc, argv ); - - QVBox *layout = new QVBox(0, "fond"); +struct Layout : QVBox{ + static QString appName() { return QString::fromLatin1("euroconv"); } + Layout(QWidget *p, const char* n, WFlags) + :QVBox(0,"fond" ) + { + LCDDisplay *lcd = new LCDDisplay(this, "lcd"); + KeyPad *num = new KeyPad(lcd, this, "keypad"); - LCDDisplay lcd (layout, "lcd"); - KeyPad num(&lcd, layout, "keypad"); - app.setMainWidget(layout); - layout->setCaption( QObject::tr("Euroconv") ); - layout->showMaximized (); - layout->show(); - return app.exec(); -} + setCaption( QObject::tr("Euroconv") ); + }; + +}; + +OPIE_EXPORT_APP( OApplicationFactory ) -- cgit v0.9.0.2