author | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
commit | 2318b309ef4c5147fa1a975b7b261ceec5dd13a7 (patch) (unidiff) | |
tree | 6deeb4aa1179bb69d6bb1b0bd0ee731e80ad896c /noncore/net/wellenreiter/gui/main.cpp | |
parent | ab65bc6a80f1c93ebd54b8c65563efde934dc45a (diff) | |
download | opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.zip opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.gz opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.bz2 |
reenable the X11 standalone build (qmake platform=x11 wellenreiter.pro)
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; |