summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/status.cpp
Unidiff
Diffstat (limited to 'noncore/games/kpacman/status.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kpacman/status.cpp5
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>
17using 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
20Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : 23Status::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
37QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName, 40QList<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