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:
parent
1b1cf78647
commit
9fb1376afe
15 changed files with 391 additions and 273 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue