
Widgets interested in such events handle the signal and update their pixmaps accordingly.
25 lines
389 B
C++
25 lines
389 B
C++
#ifndef __PIXWIDGET_H__
|
|
#define __PIXWIDGET_H__
|
|
|
|
#include <iostream>
|
|
|
|
#include <QPixmap>
|
|
#include <QPainter>
|
|
#include <QWidget>
|
|
|
|
#include "Skin.h"
|
|
|
|
class PixWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PixWidget(QWidget *parent = 0);
|
|
~PixWidget();
|
|
void paintEvent (QPaintEvent *event);
|
|
public slots:
|
|
virtual void setPixmaps(Skin *skin);
|
|
protected:
|
|
QPixmap m_pixmap;
|
|
};
|
|
|
|
#endif
|