Singletonify Skin class

This commit is contained in:
Daniel Svensson 2006-02-27 18:00:00 +01:00
parent 4e46089c01
commit fa4fc01a31
16 changed files with 103 additions and 115 deletions

3
Skin.h
View file

@ -15,6 +15,7 @@ class Skin : public QWidget
{
Q_OBJECT
public:
static Skin *getInstance (void);
Skin ();
~Skin();
@ -191,6 +192,8 @@ class Skin : public QWidget
PLS_RCBAR
};
private:
static Skin *singleton;
QPixmap *Skin::getPixmap (string file);
void Parse (string file);
void BuildLetterMap (void);