equal
deleted
inserted
replaced
27 if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true); |
27 if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true); |
28 } |
28 } |
29 |
29 |
30 void SquareLabel::paintEvent(QPaintEvent * event) |
30 void SquareLabel::paintEvent(QPaintEvent * event) |
31 { |
31 { |
|
32 Q_UNUSED(event); |
|
33 |
32 QPainter painter(this); |
34 QPainter painter(this); |
33 int pixsize; |
35 int pixsize; |
34 if (width() > height()) { |
36 if (width() > height()) { |
35 pixsize = height(); |
37 pixsize = height(); |
36 painter.translate((width() - pixsize) / 2, 0); |
38 painter.translate((width() - pixsize) / 2, 0); |