-rw-r--r-- | noncore/games/kcheckers/kcheckers.cpp | 5 | ||||
-rw-r--r-- | noncore/games/kcheckers/kcheckers.h | 3 | ||||
-rw-r--r-- | noncore/games/kcheckers/kcheckers.pro | 5 | ||||
-rw-r--r-- | noncore/games/kcheckers/main.cpp | 12 | ||||
-rw-r--r-- | noncore/games/kcheckers/opie-kcheckers.control | 2 |
5 files changed, 10 insertions, 17 deletions
diff --git a/noncore/games/kcheckers/kcheckers.cpp b/noncore/games/kcheckers/kcheckers.cpp index c2eba0d..2eb37e5 100644 --- a/noncore/games/kcheckers/kcheckers.cpp +++ b/noncore/games/kcheckers/kcheckers.cpp | |||
@@ -42,9 +42,10 @@ const int KCheckers::t[]={6,7,8,9,11,12,13,14,17,18,19,20,22,23, | |||
42 | 24,25,28,29,30,31,33,34,35,36,39,40,41,42,44,45,46,47}; | 42 | 24,25,28,29,30,31,33,34,35,36,39,40,41,42,44,45,46,47}; |
43 | 43 | ||
44 | 44 | ||
45 | KCheckers::KCheckers():QMainWindow(0,0,WStyle_DialogBorder) | 45 | KCheckers::KCheckers(QWidget *p, const char* n, WFlags ) |
46 | :QMainWindow(p,n,WStyle_DialogBorder) | ||
46 | { | 47 | { |
47 | setCaption("KCheckers"); | 48 | setCaption(tr("KCheckers") ); |
48 | setIcon(QPixmap(biglogo_xpm)); | 49 | setIcon(QPixmap(biglogo_xpm)); |
49 | 50 | ||
50 | setToolBarsMovable(false); | 51 | setToolBarsMovable(false); |
diff --git a/noncore/games/kcheckers/kcheckers.h b/noncore/games/kcheckers/kcheckers.h index ccf5bae..bd4afc7 100644 --- a/noncore/games/kcheckers/kcheckers.h +++ b/noncore/games/kcheckers/kcheckers.h | |||
@@ -29,7 +29,8 @@ class KCheckers:public QMainWindow | |||
29 | { | 29 | { |
30 | Q_OBJECT | 30 | Q_OBJECT |
31 | public: | 31 | public: |
32 | KCheckers(); | 32 | static QString appName() { return QString::fromLatin1("kcheckers"); } |
33 | KCheckers(QWidget *parent, const char* name, WFlags fl); | ||
33 | 34 | ||
34 | protected: | 35 | protected: |
35 | void closeEvent(QCloseEvent*); | 36 | void closeEvent(QCloseEvent*); |
diff --git a/noncore/games/kcheckers/kcheckers.pro b/noncore/games/kcheckers/kcheckers.pro index a23e83a..0d417bf 100644 --- a/noncore/games/kcheckers/kcheckers.pro +++ b/noncore/games/kcheckers/kcheckers.pro | |||
@@ -1,5 +1,4 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG = qt warn_on release quick-app |
2 | CONFIG = qt warn_on release | ||
3 | HEADERS = checkers.h \ | 2 | HEADERS = checkers.h \ |
4 | echeckers.h \ | 3 | echeckers.h \ |
5 | field.h \ | 4 | field.h \ |
@@ -14,7 +13,7 @@ SOURCES = checkers.cpp \ | |||
14 | INTERFACES= | 13 | INTERFACES= |
15 | INCLUDEPATH+= $(OPIEDIR)/include | 14 | INCLUDEPATH+= $(OPIEDIR)/include |
16 | LIBS += -lqpe | 15 | LIBS += -lqpe |
17 | DESTDIR = $(OPIEDIR)/bin | ||
18 | TARGET = kcheckers | 16 | TARGET = kcheckers |
19 | 17 | ||
18 | |||
20 | include ( $(OPIEDIR)/include.pro ) | 19 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/games/kcheckers/main.cpp b/noncore/games/kcheckers/main.cpp index b8dd620..6ac570a 100644 --- a/noncore/games/kcheckers/main.cpp +++ b/noncore/games/kcheckers/main.cpp | |||
@@ -3,16 +3,8 @@ | |||
3 | #include <qfont.h> | 3 | #include <qfont.h> |
4 | 4 | ||
5 | #include "kcheckers.h" | 5 | #include "kcheckers.h" |
6 | #include <opie/oapplicationfactory.h> | ||
6 | 7 | ||
8 | OPIE_EXPORT_APP( OApplicationFactory<KCheckers> ) | ||
7 | 9 | ||
8 | int main(int argc, char *argv[]) | ||
9 | { | ||
10 | QPEApplication app(argc,argv); | ||
11 | |||
12 | KCheckers kcheckers; | ||
13 | app.setMainWidget(&kcheckers); | ||
14 | kcheckers.showMaximized(); | ||
15 | |||
16 | return app.exec(); | ||
17 | } | ||
18 | 10 | ||
diff --git a/noncore/games/kcheckers/opie-kcheckers.control b/noncore/games/kcheckers/opie-kcheckers.control index e228209..71f83af 100644 --- a/noncore/games/kcheckers/opie-kcheckers.control +++ b/noncore/games/kcheckers/opie-kcheckers.control | |||
@@ -1,5 +1,5 @@ | |||
1 | Package: opie-kcheckers | 1 | Package: opie-kcheckers |
2 | Files: bin/kcheckers apps/Games/kcheckers.desktop pics/kcheckers | 2 | Files: plugins/application/libkcheckers.so* bin/kcheckers apps/Games/kcheckers.desktop pics/kcheckers |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/games | 4 | Section: opie/games |
5 | Maintainer: leseb <prudhomme@laposte.net> | 5 | Maintainer: leseb <prudhomme@laposte.net> |