-rw-r--r-- | noncore/unsupported/gsmtool/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/unsupported/gsmtool/main.cpp b/noncore/unsupported/gsmtool/main.cpp index 8f68713..bccebe7 100644 --- a/noncore/unsupported/gsmtool/main.cpp +++ b/noncore/unsupported/gsmtool/main.cpp | |||
@@ -1,12 +1,23 @@ | |||
1 | #include "gsmtool.h" | 1 | #include "gsmtool.h" |
2 | #ifdef QWS | ||
2 | #include <qpe/qpeapplication.h> | 3 | #include <qpe/qpeapplication.h> |
4 | #else | ||
5 | #include <qapplication.h> | ||
6 | #endif | ||
3 | 7 | ||
4 | int main( int argc, char ** argv ) | 8 | int main( int argc, char ** argv ) |
5 | { | 9 | { |
10 | #ifdef QWS | ||
6 | QPEApplication a( argc, argv ); | 11 | QPEApplication a( argc, argv ); |
7 | 12 | ||
8 | GSMTool mw; | 13 | GSMTool mw; |
9 | a.showMainWidget( &mw ); | 14 | a.showMainWidget( &mw ); |
15 | #else | ||
16 | QApplication a( argc, argv ); | ||
10 | 17 | ||
18 | GSMTool mw; | ||
19 | a.setMainWidget( &mw ); | ||
20 | mw.show(); | ||
21 | #endif | ||
11 | return a.exec(); | 22 | return a.exec(); |
12 | } | 23 | } |