Skin class now emits a signal when a skin has (hopefully) been loaded.

Widgets interested in such events handle the signal and update their
pixmaps accordingly.
This commit is contained in:
Daniel Svensson 2006-02-18 04:15:45 +01:00
parent 1b1cf78647
commit 9fb1376afe
15 changed files with 391 additions and 273 deletions

View file

@ -7,6 +7,7 @@
#include <QPainter>
#include <QWidget>
#include "Skin.h"
class PixWidget : public QWidget
{
@ -15,6 +16,8 @@ class PixWidget : public QWidget
PixWidget(QWidget *parent = 0);
~PixWidget();
void paintEvent (QPaintEvent *event);
public slots:
virtual void setPixmaps(Skin *skin);
protected:
QPixmap m_pixmap;
};