Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H
#include "GlobalDefines.h"
class ImageWidget : public QWidget {
Q_OBJECT
public:
ImageWidget(QWidget *parent = 0);
~ImageWidget();
void setSize(int, int);
void setText(QString);
public slots:
void updateImage(const QImage &);
protected:
void paintEvent(QPaintEvent *event);
QSize minimumSizeHint() const;
QSize sizeHint() const;
private:
QSize widgetSize;
QString initText;
QPixmap pixmap;
QPoint pixmapOffset;
};
#endif // IMAGEWIDGET_H