Diffstat (limited to 'noncore/games/kpacman/keys.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/keys.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/games/kpacman/keys.cpp b/noncore/games/kpacman/keys.cpp index 8b17785..07ce135 100644 --- a/noncore/games/kpacman/keys.cpp +++ b/noncore/games/kpacman/keys.cpp | |||
@@ -8,17 +8,17 @@ | |||
8 | #include <kstddirs.h> | 8 | #include <kstddirs.h> |
9 | #include <kaccel.h> | 9 | #include <kaccel.h> |
10 | 10 | ||
11 | #include <keys.h> | 11 | #include <keys.h> |
12 | #include <keys.moc> | 12 | #include <keys.moc> |
13 | #elif defined( QPE_PORT ) | 13 | #elif defined( QPE_PORT ) |
14 | #include <qaccel.h> | 14 | #include <qaccel.h> |
15 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
16 | #include "config.h" | 16 | #include <qpe/config.h> |
17 | #include "keys.h" | 17 | #include "keys.h" |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #include <qpushbt.h> | 20 | #include <qpushbt.h> |
21 | #include <qlabel.h> | 21 | #include <qlabel.h> |
22 | #include <qframe.h> | 22 | #include <qframe.h> |
23 | #include <qkeycode.h> | 23 | #include <qkeycode.h> |
24 | #include <qpixmap.h> | 24 | #include <qpixmap.h> |
@@ -188,16 +188,18 @@ void Keys::init() | |||
188 | QString right("Right"); | 188 | QString right("Right"); |
189 | right = cfg->readEntry("rightKey", (const char*) right); | 189 | right = cfg->readEntry("rightKey", (const char*) right); |
190 | labels[3]->setText(right); | 190 | labels[3]->setText(right); |
191 | APP_CONFIG_END( cfg ); | 191 | APP_CONFIG_END( cfg ); |
192 | } | 192 | } |
193 | 193 | ||
194 | void Keys::ok() | 194 | void Keys::ok() |
195 | { | 195 | { |
196 | /* | ||
196 | APP_CONFIG_BEGIN( cfg ); | 197 | APP_CONFIG_BEGIN( cfg ); |
197 | cfg->writeEntry("upKey", (const char*) labels[0]->text() ); | 198 | cfg->writeEntry("upKey", (const char*) labels[0]->text() ); |
198 | cfg->writeEntry("downKey", (const char*) labels[1]->text() ); | 199 | cfg->writeEntry("downKey", (const char*) labels[1]->text() ); |
199 | cfg->writeEntry("leftKey", (const char*) labels[2]->text() ); | 200 | cfg->writeEntry("leftKey", (const char*) labels[2]->text() ); |
200 | cfg->writeEntry("rightKey",(const char*) labels[3]->text() ); | 201 | cfg->writeEntry("rightKey",(const char*) labels[3]->text() ); |
201 | APP_CONFIG_END( cfg ); | 202 | APP_CONFIG_END( cfg ); |
203 | */ | ||
202 | accept(); | 204 | accept(); |
203 | } | 205 | } |