summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/main.cpp
authormickeyl <mickeyl>2003-03-31 10:20:23 (UTC)
committer mickeyl <mickeyl>2003-03-31 10:20:23 (UTC)
commit2318b309ef4c5147fa1a975b7b261ceec5dd13a7 (patch) (side-by-side diff)
tree6deeb4aa1179bb69d6bb1b0bd0ee731e80ad896c /noncore/net/wellenreiter/gui/main.cpp
parentab65bc6a80f1c93ebd54b8c65563efde934dc45a (diff)
downloadopie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.zip
opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.gz
opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.bz2
reenable the X11 standalone build (qmake platform=x11 wellenreiter.pro)
Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (ignore 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
@@ -14,13 +14,26 @@
**********************************************************************/
#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;