-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 | |||
@@ -114,9 +114,9 @@ void Kpacman::menu() | |||
114 | optionsPopup->insertSeparator(); | 114 | optionsPopup->insertSeparator(); |
115 | 115 | ||
116 | optionsPopup->insertItem(tr("Change &keys..."), this, SLOT(confKeys())); | 116 | optionsPopup->insertItem(tr("Change &keys..."), this, SLOT(confKeys())); |
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" |
120 | "Joerg Thoennissen (joe@dsite.de)\n\n" | 120 | "Joerg Thoennissen (joe@dsite.de)\n\n" |
121 | "A pacman game for the KDE Desktop\n\n" | 121 | "A pacman game for the KDE Desktop\n\n" |
122 | "The program based on the source of ksnake\n" | 122 | "The program based on the source of ksnake\n" |
@@ -134,9 +134,9 @@ void Kpacman::menu() | |||
134 | //CHECK_PTR( _menuBar ); | 134 | //CHECK_PTR( _menuBar ); |
135 | //_menuBar->insertItem(tr("&Game"), gamePopup); | 135 | //_menuBar->insertItem(tr("&Game"), gamePopup); |
136 | //_menuBar->insertItem(tr("&Options"), optionsPopup); | 136 | //_menuBar->insertItem(tr("&Options"), optionsPopup); |
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); |
140 | #endif | 140 | #endif |
141 | } | 141 | } |
142 | 142 | ||
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 | |||
@@ -22,8 +22,11 @@ | |||
22 | 22 | ||
23 | KpacmanWidget::KpacmanWidget( QWidget *parent, const char *name) | 23 | KpacmanWidget::KpacmanWidget( QWidget *parent, const char *name) |
24 | : QWidget( parent, name ) | 24 | : QWidget( parent, name ) |
25 | { | 25 | { |
26 | score = 0l; | ||
27 | referee = 0l; | ||
28 | status = 0l; | ||
26 | bitfont = NULL; | 29 | bitfont = NULL; |
27 | fontName = ""; | 30 | fontName = ""; |
28 | 31 | ||
29 | scheme = mode = -1; | 32 | scheme = mode = -1; |
@@ -140,11 +143,13 @@ void KpacmanWidget::setScheme(int Scheme, int Mode) | |||
140 | } | 143 | } |
141 | 144 | ||
142 | void KpacmanWidget::resizeEvent( QResizeEvent * ) | 145 | 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()); |
145 | referee->setBackgroundColor(BLACK); | 149 | referee->setBackgroundColor(BLACK); |
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(), |
148 | status->height()); | 153 | status->height()); |
149 | status->setBackgroundColor(BLACK); | 154 | status->setBackgroundColor(BLACK); |
150 | 155 | ||
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 | |||
@@ -18,14 +18,9 @@ | |||
18 | 18 | ||
19 | #ifndef PORTABLE_H | 19 | #ifndef PORTABLE_H |
20 | #define PORTABLE_H | 20 | #define PORTABLE_H |
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 | ||
29 | #if defined( KDE2_PORT ) | 24 | #if defined( KDE2_PORT ) |
30 | 25 | ||
31 | #define APP kapp | 26 | #define APP kapp |
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 | |||
@@ -21,8 +21,9 @@ | |||
21 | 21 | ||
22 | Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : | 22 | Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : |
23 | QWidget( parent, name ) | 23 | QWidget( parent, name ) |
24 | { | 24 | { |
25 | qWarning("Status::Status"); | ||
25 | actualLifes = 0; | 26 | actualLifes = 0; |
26 | actualLevel = 0; | 27 | actualLevel = 0; |
27 | 28 | ||
28 | lifesPix = NULL; | 29 | lifesPix = NULL; |