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