summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/main.cpp
authorgroucho <groucho>2003-05-07 09:01:39 (UTC)
committer groucho <groucho>2003-05-07 09:01:39 (UTC)
commit118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (side-by-side diff)
tree356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/main.cpp
parent00894537decf01c5a5cdc565b2740b5e67a2e90f (diff)
downloadopie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/main.cpp24
1 files changed, 20 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/main.cpp b/noncore/apps/opie-reader/main.cpp
index 2440037..3e1f5e7 100644
--- a/noncore/apps/opie-reader/main.cpp
+++ b/noncore/apps/opie-reader/main.cpp
@@ -1,2 +1,7 @@
+#include "useqpe.h"
+#ifdef USEQPE
#include <qpe/qpeapplication.h>
+#else
+#include <qapplication.h>
+#endif
#include "QTReaderApp.h"
@@ -7,2 +12,4 @@
+
+#ifdef USEQPE
QTReaderApp* app = NULL;
@@ -18,2 +25,3 @@ void handler(int signum)
}
+#endif
@@ -21,11 +29,19 @@ int main( int argc, char ** argv )
{
- signal(SIGCONT, handler);
+#ifdef USEQPE
+ signal(SIGCONT, handler);
QPEApplication a( argc, argv );
-
QTReaderApp m;
-
a.showMainDocumentWidget( &m );
-
app = &m;
+#else
+ QApplication a( argc, argv );
+ QTReaderApp m;
+ a.setMainWidget( &m );
+ if (argc > 1)
+ {
+ m.setDocument(argv[1]);
+ }
+#endif
+