equal
deleted
inserted
replaced
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 |