Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/main.cpp | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index 270ce06..96a8c1c 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -14,30 +14,14 @@ | |||
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "mainwindow.h" | 16 | #include "mainwindow.h" |
17 | 17 | #include <opie2/oapplication.h> | |
18 | #ifdef QWS | ||
19 | #include <qpe/qpeapplication.h> | ||
20 | #else | ||
21 | #include <qapplication.h> | ||
22 | #endif | ||
23 | 18 | ||
24 | int main( int argc, char **argv ) | 19 | int main( int argc, char **argv ) |
25 | { | 20 | { |
26 | #ifdef QWS | 21 | OApplication a( argc, argv, "Wellenreiter II" ); |
27 | QPEApplication a( argc, argv ); | 22 | WellenreiterMainWindow* w = new WellenreiterMainWindow(); |
28 | #else | 23 | a.showMainWidget( w ); |
29 | QApplication a( argc, argv ); | 24 | a.exec(); |
30 | #endif | 25 | delete w; |
31 | 26 | return 0; | |
32 | WellenreiterMainWindow w; | ||
33 | |||
34 | w.setCaption( "Wellenreiter/Opie" ); | ||
35 | #ifdef QWS | ||
36 | a.showMainWidget(&w); | ||
37 | #else | ||
38 | a.setMainWidget(&w); | ||
39 | w.show(); | ||
40 | #endif | ||
41 | |||
42 | return a.exec(); | ||
43 | } | 27 | } |