summaryrefslogtreecommitdiff
path: root/noncore/tools/euroconv/main.cpp
authormickeyl <mickeyl>2003-10-29 16:45:13 (UTC)
committer mickeyl <mickeyl>2003-10-29 16:45:13 (UTC)
commite8697a4281f7a265b69e6bf5253383c73a38626b (patch) (unidiff)
tree040470f8f5c90c0d72ff5f01a272143571842078 /noncore/tools/euroconv/main.cpp
parentd5d9b307e950d9038215e4d63e64bc9cd5d85352 (diff)
downloadopie-e8697a4281f7a265b69e6bf5253383c73a38626b.zip
opie-e8697a4281f7a265b69e6bf5253383c73a38626b.tar.gz
opie-e8697a4281f7a265b69e6bf5253383c73a38626b.tar.bz2
merge noncore/tools/*
Diffstat (limited to 'noncore/tools/euroconv/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/euroconv/main.cpp26
1 files changed, 12 insertions, 14 deletions
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
@@ -6,34 +6,32 @@
6 * 6 *
7 * 7 *
8 * Authors: Eric Santonacci <Eric.Santonacci@talc.fr> 8 * Authors: Eric Santonacci <Eric.Santonacci@talc.fr>
9 * 9 *
10 * Requirements: Qt 10 * Requirements: Qt
11 * 11 *
12 * $Id$
13 * 12 *
14 ***************************************************************************/ 13 ***************************************************************************/
15 14
16#include <qpe/qpeapplication.h> 15#include <qpe/qpeapplication.h>
17#include <qvbox.h> 16#include <qvbox.h>
18//#include <qapplication.h>
19 17
20#include "calcdisplay.h" 18#include "calcdisplay.h"
21#include "calckeypad.h" 19#include "calckeypad.h"
22 20
21#include <opie/oapplicationfactory.h>
23 22
23struct Layout : QVBox{
24 static QString appName() { return QString::fromLatin1("euroconv"); }
25 Layout(QWidget *p, const char* n, WFlags)
26 :QVBox(0,"fond" )
27 {
28 LCDDisplay *lcd = new LCDDisplay(this, "lcd");
29 KeyPad *num = new KeyPad(lcd, this, "keypad");
24 30
25int main( int argc, char **argv ) { 31 setCaption( QObject::tr("Euroconv") );
32 };
26 33
27 QPEApplication app( argc, argv ); 34};
28 35
29 QVBox *layout = new QVBox(0, "fond"); 36OPIE_EXPORT_APP( OApplicationFactory<Layout> )
30
31 LCDDisplay lcd (layout, "lcd");
32 KeyPad num(&lcd, layout, "keypad");
33 app.setMainWidget(layout);
34 layout->setCaption( QObject::tr("Euroconv") );
35 layout->showMaximized ();
36 layout->show();
37 return app.exec();
38}
39 37