summaryrefslogtreecommitdiff
authorzecke <zecke>2004-11-14 22:13:19 (UTC)
committer zecke <zecke>2004-11-14 22:13:19 (UTC)
commit639ae2f86e57b77e875bdf933534b652b207f1b6 (patch) (side-by-side diff)
tree338a4aedb3f0dab5708a958a50f1625a53962ecb
parent489818a4ee9b5328e31d184d5a0b43673b69dff2 (diff)
downloadopie-639ae2f86e57b77e875bdf933534b652b207f1b6.zip
opie-639ae2f86e57b77e875bdf933534b652b207f1b6.tar.gz
opie-639ae2f86e57b77e875bdf933534b652b207f1b6.tar.bz2
Make OYatzee quick launchable
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 @@
#include "oyatzee.h"
-#include <qpe/qpeapplication.h>
+#include <opie2/oapplicationfactory.h>
-int main( int argc, char ** argv )
-{
- QPEApplication a( argc, argv );
-
- OYatzee mw;
- a.showMainWidget(&mw);
-
- return a.exec();
-}
+OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<OYatzee> )
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,6 +1,6 @@
Package: opie-oyatzee
-Files: bin/oyatzee apps/Games/oyatzee.desktop pics/oyatzee
+Files: plugins/applications/liboyatzee.so* bin/oyatzee apps/Games/oyatzee.desktop pics/oyatzee
Priority: optional
Section: opie/games
Maintainer: Carsten Niehaus <cniehaus@handhelds.org>
Architecture: arm
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
@@ -29,8 +29,9 @@ class OYatzee : public QMainWindow {
Q_OBJECT
public:
OYatzee( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~OYatzee();
+ static QString appName() { return QString::fromLatin1("oyatzee"); }
Game *g();
DiceWidget *dw;
Scoreboard *sb;
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,7 +1,5 @@
-TEMPLATE = app
-CONFIG = qt warn_on
-DESTDIR = $(OPIEDIR)/bin
+CONFIG = qt quick-app
HEADERS = oyatzee.h
SOURCES = main.cpp oyatzee.cpp
TARGET = oyatzee
INCLUDEPATH += $(OPIEDIR)/include