summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/oyatzee/main.cpp12
-rw-r--r--noncore/games/oyatzee/opie-oyatzee.control2
-rw-r--r--noncore/games/oyatzee/oyatzee.h1
-rw-r--r--noncore/games/oyatzee/oyatzee.pro4
4 files changed, 5 insertions, 14 deletions
diff --git a/noncore/games/oyatzee/main.cpp b/noncore/games/oyatzee/main.cpp
index 1fd51f6..a5c19f0 100644
--- a/noncore/games/oyatzee/main.cpp
+++ b/noncore/games/oyatzee/main.cpp
@@ -1,13 +1,5 @@
1#include "oyatzee.h" 1#include "oyatzee.h"
2 2
3#include <qpe/qpeapplication.h> 3#include <opie2/oapplicationfactory.h>
4 4
5int main( int argc, char ** argv ) 5OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<OYatzee> )
6{
7 QPEApplication a( argc, argv );
8
9 OYatzee mw;
10 a.showMainWidget(&mw);
11
12 return a.exec();
13}
diff --git a/noncore/games/oyatzee/opie-oyatzee.control b/noncore/games/oyatzee/opie-oyatzee.control
index 8249fed..4eb096c 100644
--- a/noncore/games/oyatzee/opie-oyatzee.control
+++ b/noncore/games/oyatzee/opie-oyatzee.control
@@ -1,8 +1,8 @@
1Package: opie-oyatzee 1Package: opie-oyatzee
2Files: bin/oyatzee apps/Games/oyatzee.desktop pics/oyatzee 2Files: plugins/applications/liboyatzee.so* bin/oyatzee apps/Games/oyatzee.desktop pics/oyatzee
3Priority: optional 3Priority: optional
4Section: opie/games 4Section: opie/games
5Maintainer: Carsten Niehaus <cniehaus@handhelds.org> 5Maintainer: Carsten Niehaus <cniehaus@handhelds.org>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal 7Depends: task-opie-minimal
8Description: Yatzee-like game 8Description: Yatzee-like game
diff --git a/noncore/games/oyatzee/oyatzee.h b/noncore/games/oyatzee/oyatzee.h
index 048a733..a38182d 100644
--- a/noncore/games/oyatzee/oyatzee.h
+++ b/noncore/games/oyatzee/oyatzee.h
@@ -27,12 +27,13 @@ typedef QMap<int,int> pointMap;
27 27
28class OYatzee : public QMainWindow { 28class OYatzee : public QMainWindow {
29 Q_OBJECT 29 Q_OBJECT
30 public: 30 public:
31 OYatzee( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 31 OYatzee( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
32 ~OYatzee(); 32 ~OYatzee();
33 static QString appName() { return QString::fromLatin1("oyatzee"); }
33 34
34 Game *g(); 35 Game *g();
35 DiceWidget *dw; 36 DiceWidget *dw;
36 Scoreboard *sb; 37 Scoreboard *sb;
37 38
38 QValueListInt posibilities; 39 QValueListInt posibilities;
diff --git a/noncore/games/oyatzee/oyatzee.pro b/noncore/games/oyatzee/oyatzee.pro
index f505c66..208535a 100644
--- a/noncore/games/oyatzee/oyatzee.pro
+++ b/noncore/games/oyatzee/oyatzee.pro
@@ -1,9 +1,7 @@
1 TEMPLATE= app 1 CONFIG = qt quick-app
2 CONFIG = qt warn_on
3 DESTDIR = $(OPIEDIR)/bin
4 HEADERS = oyatzee.h 2 HEADERS = oyatzee.h
5 SOURCES = main.cpp oyatzee.cpp 3 SOURCES = main.cpp oyatzee.cpp
6 TARGET = oyatzee 4 TARGET = oyatzee
7INCLUDEPATH += $(OPIEDIR)/include 5INCLUDEPATH += $(OPIEDIR)/include
8 DEPENDPATH+= $(OPIEDIR)/include 6 DEPENDPATH+= $(OPIEDIR)/include
9LIBS += -lqpe -lopiecore2 7LIBS += -lqpe -lopiecore2