Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (ignore 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 f8dc5d7..4b8d489 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -11,19 +11,32 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "wellenreiter.h" | 16 | #include "wellenreiter.h" |
17 | |||
18 | #ifdef QWS | ||
17 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
20 | #else | ||
21 | #include <qapplication.h> | ||
22 | #endif | ||
18 | 23 | ||
19 | int main( int argc, char **argv ) | 24 | int main( int argc, char **argv ) |
20 | { | 25 | { |
26 | #ifdef QWS | ||
21 | QPEApplication a( argc, argv ); | 27 | QPEApplication a( argc, argv ); |
28 | #else | ||
29 | QApplication a( argc, argv ); | ||
30 | #endif | ||
22 | 31 | ||
23 | Wellenreiter e; | 32 | Wellenreiter e; |
24 | 33 | ||
25 | e.setCaption( Wellenreiter::tr("Wellenreiter") ); | 34 | e.setCaption( Wellenreiter::tr("Wellenreiter") ); |
35 | #ifdef QWS | ||
26 | a.showMainWidget(&e); | 36 | a.showMainWidget(&e); |
37 | #else | ||
38 | a.setMainWidget(&e); | ||
39 | #endif | ||
27 | 40 | ||
28 | return a.exec(); | 41 | return a.exec(); |
29 | } | 42 | } |