promoe/PixWidget.h
Daniel Svensson 9fb1376afe 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.
2006-02-18 04:15:45 +01:00

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