QTfrontend/SquareLabel.h
changeset 2948 3f21a9dc93d0
parent 1066 1f1b3686a2b0
child 3236 4ab3917d7d44
equal deleted inserted replaced
2947:803b277e4894 2948:3f21a9dc93d0
    22 #include <QWidget>
    22 #include <QWidget>
    23 #include <QPixmap>
    23 #include <QPixmap>
    24 
    24 
    25 class SquareLabel : public QWidget
    25 class SquareLabel : public QWidget
    26 {
    26 {
    27 	Q_OBJECT
    27     Q_OBJECT
    28 
    28 
    29 public:
    29 public:
    30 	SquareLabel(QWidget * parent = 0);
    30     SquareLabel(QWidget * parent = 0);
    31 
    31 
    32 	void setPixmap(const QPixmap & pixmap);
    32     void setPixmap(const QPixmap & pixmap);
    33 protected:
    33 protected:
    34 	virtual void paintEvent(QPaintEvent * event);
    34     virtual void paintEvent(QPaintEvent * event);
    35 
    35 
    36 private:
    36 private:
    37 	QPixmap pixmap;
    37     QPixmap pixmap;
    38 
    38 
    39 };
    39 };
    40 
    40 
    41 #endif // _SQUARELABEL_H
    41 #endif // _SQUARELABEL_H