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 @@ -15,14 +15,27 @@ #include "wellenreiter.h" + +#ifdef QWS #include <qpe/qpeapplication.h> +#else +#include <qapplication.h> +#endif int main( int argc, char **argv ) { +#ifdef QWS QPEApplication a( argc, argv ); +#else + QApplication a( argc, argv ); +#endif Wellenreiter e; e.setCaption( Wellenreiter::tr("Wellenreiter") ); +#ifdef QWS a.showMainWidget(&e); +#else + a.setMainWidget(&e); +#endif return a.exec(); |