summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/main.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp
index 96a8c1c..8d4ef57 100644
--- a/noncore/net/wellenreiter/gui/main.cpp
+++ b/noncore/net/wellenreiter/gui/main.cpp
@@ -11,17 +11,30 @@
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
**********************************************************************/
#include "mainwindow.h"
+#ifdef QWS
#include <opie2/oapplication.h>
+#else
+#include <qapplication.h>
+#endif
int main( int argc, char **argv )
{
+ #ifdef QWS
OApplication a( argc, argv, "Wellenreiter II" );
+ #else
+ QApplication a( argc, argv );
+ #endif
WellenreiterMainWindow* w = new WellenreiterMainWindow();
+ #ifdef QWS
a.showMainWidget( w );
+ #else
+ a.setMainWidget( w );
+ w->show();
+ #endif
a.exec();
delete w;
return 0;
}