summaryrefslogtreecommitdiff
path: root/noncore/unsupported/gsmtool/main.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/gsmtool/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/gsmtool/main.cpp11
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,3 +1,7 @@
#include "gsmtool.h"
+#ifdef QWS
#include <qpe/qpeapplication.h>
+#else
+#include <qapplication.h>
+#endif
@@ -5,2 +9,3 @@ int main( int argc, char ** argv )
{
+#ifdef QWS
QPEApplication a( argc, argv );
@@ -9,3 +14,9 @@ int main( int argc, char ** argv )
a.showMainWidget( &mw );
+#else
+ QApplication a( argc, argv );
+ GSMTool mw;
+ a.setMainWidget( &mw );
+ mw.show();
+#endif
return a.exec();