Diffstat (limited to 'noncore/games/snake/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/snake/main.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/noncore/games/snake/main.cpp b/noncore/games/snake/main.cpp index 90a93b7..77a2769 100644 --- a/noncore/games/snake/main.cpp +++ b/noncore/games/snake/main.cpp @@ -19,3 +19,3 @@ **********************************************************************/ - + #include "interface.h" @@ -23,13 +23,7 @@ #include <qpe/qpeapplication.h> +#include <opie/oapplicationfactory.h> + +OPIE_EXPORT_APP( OApplicationFactory<SnakeGame> ) -int main(int argc, char **argv) -{ - QPEApplication app(argc,argv); - SnakeGame* m = new SnakeGame; - QPEApplication::setInputMethodHint( m, QPEApplication::AlwaysOff ); - app.showMainWidget(m); - - return app.exec(); -} |