author | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
commit | 16cf79e90b5217f8d4bfce2a0fa817ae4b73db36 (patch) (unidiff) | |
tree | 0701eae15aa606a0211a2fccfde0eafdac69357c /noncore/games/kpacman/status.cpp | |
parent | 8d2d2664e5f544b8292806e617deb7a0e4170dc0 (diff) | |
download | opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.zip opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.gz opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.bz2 |
convert to Opie Debugging Framework
Diffstat (limited to 'noncore/games/kpacman/status.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/status.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/games/kpacman/status.cpp b/noncore/games/kpacman/status.cpp index 02ff63d..db6938e 100644 --- a/noncore/games/kpacman/status.cpp +++ b/noncore/games/kpacman/status.cpp | |||
@@ -1,47 +1,50 @@ | |||
1 | 1 | ||
2 | #include "portable.h" | 2 | #include "portable.h" |
3 | 3 | ||
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 <qpe/config.h> | 12 | #include <qpe/config.h> |
13 | #include "status.h" | 13 | #include "status.h" |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #include <opie2/odebug.h> | ||
17 | using namespace Opie::Core; | ||
18 | |||
16 | #include <qbitmap.h> | 19 | #include <qbitmap.h> |
17 | #include <qmsgbox.h> | 20 | #include <qmsgbox.h> |
18 | #include <qfileinfo.h> | 21 | #include <qfileinfo.h> |
19 | 22 | ||
20 | Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : | 23 | Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : |
21 | QWidget( parent, name ) | 24 | QWidget( parent, name ) |
22 | { | 25 | { |
23 | qWarning("Status::Status"); | 26 | owarn << "Status::Status" << oendl; |
24 | actualLifes = 0; | 27 | actualLifes = 0; |
25 | actualLevel = 0; | 28 | actualLevel = 0; |
26 | 29 | ||
27 | lifesPix = NULL; | 30 | lifesPix = NULL; |
28 | levelPix = NULL; | 31 | levelPix = NULL; |
29 | 32 | ||
30 | scheme = Scheme; | 33 | scheme = Scheme; |
31 | mode = Mode; | 34 | mode = Mode; |
32 | level = 0; | 35 | level = 0; |
33 | 36 | ||
34 | confScheme(); | 37 | confScheme(); |
35 | } | 38 | } |
36 | 39 | ||
37 | QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName, | 40 | QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName, |
38 | QList<QPixmap> *pixmaps) | 41 | QList<QPixmap> *pixmaps) |
39 | { | 42 | { |
40 | if (pixmaps == NULL) { | 43 | if (pixmaps == NULL) { |
41 | pixmaps = new QList<QPixmap>; | 44 | pixmaps = new QList<QPixmap>; |
42 | pixmaps->setAutoDelete(TRUE); | 45 | pixmaps->setAutoDelete(TRUE); |
43 | } | 46 | } |
44 | 47 | ||
45 | if (!pixmaps->isEmpty()) | 48 | if (!pixmaps->isEmpty()) |
46 | pixmaps->clear(); | 49 | pixmaps->clear(); |
47 | 50 | ||