-rw-r--r-- | noncore/games/tetrix/main.cpp | 9 | ||||
-rw-r--r-- | noncore/games/tetrix/opie-tetrix.control | 2 | ||||
-rw-r--r-- | noncore/games/tetrix/qtetrix.h | 1 | ||||
-rw-r--r-- | noncore/games/tetrix/tetrix.pro | 7 |
4 files changed, 8 insertions, 11 deletions
diff --git a/noncore/games/tetrix/main.cpp b/noncore/games/tetrix/main.cpp index e36d52d..fcf4b33 100644 --- a/noncore/games/tetrix/main.cpp +++ b/noncore/games/tetrix/main.cpp | |||
@@ -22,12 +22,7 @@ | |||
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | 24 | ||
25 | int main( int argc, char **argv ) | 25 | #include <opie/oapplicationfactory.h> |
26 | { | ||
27 | QPEApplication a(argc,argv); | ||
28 | 26 | ||
29 | QTetrix *tetrix = new QTetrix; | 27 | OPIE_EXPORT_APP( OApplicationFactory<QTetrix> ) |
30 | a.showMainWidget(tetrix); | ||
31 | 28 | ||
32 | return a.exec(); | ||
33 | } | ||
diff --git a/noncore/games/tetrix/opie-tetrix.control b/noncore/games/tetrix/opie-tetrix.control index e901dbf..b1e0bcf 100644 --- a/noncore/games/tetrix/opie-tetrix.control +++ b/noncore/games/tetrix/opie-tetrix.control | |||
@@ -1,5 +1,5 @@ | |||
1 | Package: opie-tetrix | 1 | Package: opie-tetrix |
2 | Files: bin/tetrix apps/Games/tetrix.desktop pics/tetrix/* | 2 | Files: plugins/application/libtetrix.so* bin/tetrix apps/Games/tetrix.desktop pics/tetrix/* |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/games | 4 | Section: opie/games |
5 | Maintainer: Martin Imobersteg <imm@gmx.ch> | 5 | Maintainer: Martin Imobersteg <imm@gmx.ch> |
diff --git a/noncore/games/tetrix/qtetrix.h b/noncore/games/tetrix/qtetrix.h index cb33941..c8959c5 100644 --- a/noncore/games/tetrix/qtetrix.h +++ b/noncore/games/tetrix/qtetrix.h | |||
@@ -52,6 +52,7 @@ class QTetrix : public QMainWindow | |||
52 | { | 52 | { |
53 | Q_OBJECT | 53 | Q_OBJECT |
54 | public: | 54 | public: |
55 | static QString appName() { return QString::fromLatin1("tetrix"); } | ||
55 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); | 56 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); |
56 | void startGame() { board->startGame(); } | 57 | void startGame() { board->startGame(); } |
57 | 58 | ||
diff --git a/noncore/games/tetrix/tetrix.pro b/noncore/games/tetrix/tetrix.pro index 35fe82b..3b95c84 100644 --- a/noncore/games/tetrix/tetrix.pro +++ b/noncore/games/tetrix/tetrix.pro | |||
@@ -1,6 +1,4 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG = qt warn_on release quick-app |
2 | CONFIG = qt warn_on release | ||
3 | DESTDIR = $(OPIEDIR)/bin | ||
4 | HEADERS = gtetrix.h \ | 2 | HEADERS = gtetrix.h \ |
5 | qtetrix.h \ | 3 | qtetrix.h \ |
6 | qtetrixb.h \ | 4 | qtetrixb.h \ |
@@ -18,4 +16,7 @@ LIBS += -lqpe -lstdc++ | |||
18 | INTERFACES= | 16 | INTERFACES= |
19 | TARGET = tetrix | 17 | TARGET = tetrix |
20 | 18 | ||
19 | |||
20 | |||
21 | |||
21 | include ( $(OPIEDIR)/include.pro ) | 22 | include ( $(OPIEDIR)/include.pro ) |