-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 | |||
@@ -19,15 +19,10 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "qtetrix.h" | 21 | #include "qtetrix.h" |
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,8 +1,8 @@ | |||
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> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Arch: iPAQ | 7 | Arch: iPAQ |
8 | Depends: task-opie-minimal | 8 | Depends: task-opie-minimal |
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 | |||
@@ -49,12 +49,13 @@ private: | |||
49 | 49 | ||
50 | 50 | ||
51 | class QTetrix : public QMainWindow | 51 | 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 | ||
58 | public slots: | 59 | public slots: |
59 | void gameOver(); | 60 | void gameOver(); |
60 | void quit(); | 61 | void quit(); |
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,9 +1,7 @@ | |||
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 \ |
7 | tpiece.h \ | 5 | tpiece.h \ |
8 | ohighscoredlg.h | 6 | ohighscoredlg.h |
9 | SOURCES = main.cpp \ | 7 | SOURCES = main.cpp \ |
@@ -15,7 +13,10 @@ SOURCES = main.cpp \ | |||
15 | INCLUDEPATH += $(OPIEDIR)/include | 13 | INCLUDEPATH += $(OPIEDIR)/include |
16 | DEPENDPATH+= $(OPIEDIR)/include | 14 | DEPENDPATH+= $(OPIEDIR)/include |
17 | LIBS += -lqpe -lstdc++ | 15 | 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 ) |