changeset 2072 | 6e0fcbcc3f60 |
parent 1066 | 1f1b3686a2b0 |
child 2098 | c977d7f2aa09 |
2071:0faa147c47df | 2072:6e0fcbcc3f60 |
---|---|
21 #include "SquareLabel.h" |
21 #include "SquareLabel.h" |
22 |
22 |
23 SquareLabel::SquareLabel(QWidget * parent) : |
23 SquareLabel::SquareLabel(QWidget * parent) : |
24 QWidget(parent) |
24 QWidget(parent) |
25 { |
25 { |
26 |
26 setAttribute(Qt::WA_PaintOnScreen, true); |
27 } |
27 } |
28 |
28 |
29 void SquareLabel::paintEvent(QPaintEvent * event) |
29 void SquareLabel::paintEvent(QPaintEvent * event) |
30 { |
30 { |
31 QPainter painter(this); |
31 QPainter painter(this); |