Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#ifndef IMAGEWIDGET_H#define IMAGEWIDGET_H#include "GlobalDefines.h"class ImageWidget : public QWidget {Q_OBJECTpublic: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