author | zecke <zecke> | 2003-01-22 14:52:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-01-22 14:52:17 (UTC) |
commit | 36fab41fa6b38b9f3aa5ecd74b750eaf739beb16 (patch) (unidiff) | |
tree | 44c886f9d6673b8d0ac1c446fa9cbcabad6d9bb3 | |
parent | aa611367a06617e9ad12bd6787ce255a5965f695 (diff) | |
download | opie-36fab41fa6b38b9f3aa5ecd74b750eaf739beb16.zip opie-36fab41fa6b38b9f3aa5ecd74b750eaf739beb16.tar.gz opie-36fab41fa6b38b9f3aa5ecd74b750eaf739beb16.tar.bz2 |
make it build with Qt/X11
for running one need to copy the kpacman.conf from share/kpacman to ~/Settings
-rw-r--r-- | noncore/games/kpacman/kpacman.cpp | 4 | ||||
-rw-r--r-- | noncore/games/kpacman/kpacmanwidget.cpp | 5 | ||||
-rw-r--r-- | noncore/games/kpacman/portable.h | 5 | ||||
-rw-r--r-- | noncore/games/kpacman/status.cpp | 1 |
4 files changed, 8 insertions, 7 deletions
diff --git a/noncore/games/kpacman/kpacman.cpp b/noncore/games/kpacman/kpacman.cpp index d9d2d69..aee8eea 100644 --- a/noncore/games/kpacman/kpacman.cpp +++ b/noncore/games/kpacman/kpacman.cpp | |||
@@ -117,3 +117,3 @@ void Kpacman::menu() | |||
117 | 117 | ||
118 | #ifndef QWS | 118 | #ifndef QPE_PORT |
119 | QString aboutText = tr("@PACKAGE@ - @VERSION@\n\n" | 119 | QString aboutText = tr("@PACKAGE@ - @VERSION@\n\n" |
@@ -137,3 +137,3 @@ void Kpacman::menu() | |||
137 | //_menuBar->insertSeparator(); | 137 | //_menuBar->insertSeparator(); |
138 | #ifndef QWS | 138 | #ifndef QPE_PORT |
139 | _menuBar->insertItem(tr("&Help"), helpPopup); | 139 | _menuBar->insertItem(tr("&Help"), helpPopup); |
diff --git a/noncore/games/kpacman/kpacmanwidget.cpp b/noncore/games/kpacman/kpacmanwidget.cpp index feb782c..cf2aed9 100644 --- a/noncore/games/kpacman/kpacmanwidget.cpp +++ b/noncore/games/kpacman/kpacmanwidget.cpp | |||
@@ -25,2 +25,5 @@ KpacmanWidget::KpacmanWidget( QWidget *parent, const char *name) | |||
25 | { | 25 | { |
26 | score = 0l; | ||
27 | referee = 0l; | ||
28 | status = 0l; | ||
26 | bitfont = NULL; | 29 | bitfont = NULL; |
@@ -143,2 +146,3 @@ void KpacmanWidget::resizeEvent( QResizeEvent * ) | |||
143 | { | 146 | { |
147 | qWarning("Resize"); | ||
144 | referee->setGeometry(0, bitfont->height()*3, referee->width(), referee->height()); | 148 | referee->setGeometry(0, bitfont->height()*3, referee->width(), referee->height()); |
@@ -146,2 +150,3 @@ void KpacmanWidget::resizeEvent( QResizeEvent * ) | |||
146 | 150 | ||
151 | if(!status ) return; | ||
147 | status->setGeometry(0, bitfont->height()*3+referee->height(), referee->width(), | 152 | status->setGeometry(0, bitfont->height()*3+referee->height(), referee->width(), |
diff --git a/noncore/games/kpacman/portable.h b/noncore/games/kpacman/portable.h index ff0912b..b087be5 100644 --- a/noncore/games/kpacman/portable.h +++ b/noncore/games/kpacman/portable.h | |||
@@ -21,8 +21,3 @@ | |||
21 | 21 | ||
22 | #ifdef QWS | ||
23 | #define QPE_PORT | 22 | #define QPE_PORT |
24 | #else | ||
25 | #define KDE2_PORT | ||
26 | #define KDE_PORT | ||
27 | #endif | ||
28 | 23 | ||
diff --git a/noncore/games/kpacman/status.cpp b/noncore/games/kpacman/status.cpp index 3453d37..1ef910d 100644 --- a/noncore/games/kpacman/status.cpp +++ b/noncore/games/kpacman/status.cpp | |||
@@ -24,2 +24,3 @@ Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : | |||
24 | { | 24 | { |
25 | qWarning("Status::Status"); | ||
25 | actualLifes = 0; | 26 | actualLifes = 0; |