author | zecke <zecke> | 2003-05-14 12:08:54 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-14 12:08:54 (UTC) |
commit | c480b91a5afe1f259287c3c4173ec02f2b4854cb (patch) (unidiff) | |
tree | ffe59a2fc544f6067fd96065d94a877188f1ef88 /noncore/games/kpacman/status.cpp | |
parent | 415a300230e10e29660b2af26a23798fd0b12e03 (diff) | |
download | opie-c480b91a5afe1f259287c3c4173ec02f2b4854cb.zip opie-c480b91a5afe1f259287c3c4173ec02f2b4854cb.tar.gz opie-c480b91a5afe1f259287c3c4173ec02f2b4854cb.tar.bz2 |
patch by Scott Bronson
kill the duplicated config.cpp and config.h file
add proper default values so that kpacman actually works
out of the box
Config wanted to read kpacman.conf but this file did only exist
globally
Diffstat (limited to 'noncore/games/kpacman/status.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/status.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/kpacman/status.cpp b/noncore/games/kpacman/status.cpp index 1ef910d..2a17c21 100644 --- a/noncore/games/kpacman/status.cpp +++ b/noncore/games/kpacman/status.cpp | |||
@@ -4,17 +4,17 @@ | |||
4 | #if defined( KDE2_PORT ) | 4 | #if defined( KDE2_PORT ) |
5 | #include <kapp.h> | 5 | #include <kapp.h> |
6 | #include <klocale.h> | 6 | #include <klocale.h> |
7 | #include <kstddirs.h> | 7 | #include <kstddirs.h> |
8 | #include <status.h> | 8 | #include <status.h> |
9 | #include <status.moc> | 9 | #include <status.moc> |
10 | #elif defined( QPE_PORT ) | 10 | #elif defined( QPE_PORT ) |
11 | #include <qpe/qpeapplication.h> | 11 | #include <qpe/qpeapplication.h> |
12 | #include "config.h" | 12 | #include <qpe/config.h> |
13 | #include "status.h" | 13 | #include "status.h" |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #include <qpixmap.h> | 16 | #include <qpixmap.h> |
17 | #include <qbitmap.h> | 17 | #include <qbitmap.h> |
18 | #include <qstring.h> | 18 | #include <qstring.h> |
19 | #include <qmsgbox.h> | 19 | #include <qmsgbox.h> |
20 | #include <qfileinfo.h> | 20 | #include <qfileinfo.h> |
@@ -242,17 +242,17 @@ void Status::confMisc(bool defGroup) | |||
242 | pixmapDirectory.append("/"); | 242 | pixmapDirectory.append("/"); |
243 | } | 243 | } |
244 | 244 | ||
245 | if (defGroup || cfg->hasKey("LifesPixmapName")) | 245 | if (defGroup || cfg->hasKey("LifesPixmapName")) |
246 | fillStrList(lifesPixmapName, | 246 | fillStrList(lifesPixmapName, |
247 | cfg->readEntry("LifesPixmapName", "lifes.xpm"), maxLevel+1); | 247 | cfg->readEntry("LifesPixmapName", "lifes.xpm"), maxLevel+1); |
248 | if (defGroup || cfg->hasKey("LevelPixmapName")) | 248 | if (defGroup || cfg->hasKey("LevelPixmapName")) |
249 | fillStrList(levelPixmapName, | 249 | fillStrList(levelPixmapName, |
250 | cfg->readEntry("LevelPixmapName", "level.xpm"), maxLevel+1); | 250 | cfg->readEntry("LevelPixmapName", "fruit.xpm"), maxLevel+1); |
251 | APP_CONFIG_END( cfg ); | 251 | APP_CONFIG_END( cfg ); |
252 | } | 252 | } |
253 | 253 | ||
254 | void Status::confScheme() | 254 | void Status::confScheme() |
255 | { | 255 | { |
256 | APP_CONFIG_BEGIN( cfg ); | 256 | APP_CONFIG_BEGIN( cfg ); |
257 | SAVE_CONFIG_GROUP( cfg, oldgroup ); | 257 | SAVE_CONFIG_GROUP( cfg, oldgroup ); |
258 | QString newgroup; | 258 | QString newgroup; |