summaryrefslogtreecommitdiff
path: root/library/qpeapplication.h
Side-by-side diff
Diffstat (limited to 'library/qpeapplication.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h
index 00d3d31..849d5b3 100644
--- a/library/qpeapplication.h
+++ b/library/qpeapplication.h
@@ -221,4 +221,17 @@ inline void QPEApplication::setCurrentRotation( int r )
}
+/*
+ * Qtopia 1.7 SDK compatibility macros
+ * FIXME: Support Opie Quicklaunch Interface
+ */
+#define QTOPIA_ADD_APPLICATION(NAME,IMPLEMENTATION) \
+ int main( int argc, char** argv ) \
+ { \
+ QPEApplication app = QPEApplication( argc, argv ); \
+ IMPLEMENTATION* mw = new IMPLEMENTATION(); \
+ app.showMainWidget( mw ); \
+ app.exec(); \
+ }
+#define QTOPIA_MAIN // Bee-Bop-Alula
/*