author | dwmw2 <dwmw2> | 2002-04-21 10:45:43 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-04-21 10:45:43 (UTC) |
commit | 6cf7106e761ed81c28f73338f2e431b41d54ed4e (patch) (side-by-side diff) | |
tree | 95896098d9443fb3b8aa765aed71b31363d6971a | |
parent | e22eee22120129209bf91c91bd3176f977c75493 (diff) | |
download | opie-6cf7106e761ed81c28f73338f2e431b41d54ed4e.zip opie-6cf7106e761ed81c28f73338f2e431b41d54ed4e.tar.gz opie-6cf7106e761ed81c28f73338f2e431b41d54ed4e.tar.bz2 |
Allow building as real Qt app too.
-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,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(); |