QTfrontend/SquareLabel.cpp
changeset 4560 5d6c7f88db73
parent 3236 4ab3917d7d44
child 4976 088d40d8aba2
equal deleted inserted replaced
4559:194d5a7a3fd4 4560:5d6c7f88db73
    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);