respecdt the contents rect
svn path=/trunk/KDE/kdelibs/; revision=1124318
This commit is contained in:
parent
3c80abf735
commit
fb2d1cf524
@ -294,7 +294,7 @@ void Label::paint(QPainter *painter,
|
|||||||
QGraphicsProxyWidget::paint(painter, option, widget);
|
QGraphicsProxyWidget::paint(painter, option, widget);
|
||||||
} else {
|
} else {
|
||||||
const int gradientLength = 25;
|
const int gradientLength = 25;
|
||||||
QPixmap buffer(size().toSize());
|
QPixmap buffer(contentsRect().size().toSize());
|
||||||
buffer.fill(Qt::transparent);
|
buffer.fill(Qt::transparent);
|
||||||
|
|
||||||
QPainter buffPainter(&buffer);
|
QPainter buffPainter(&buffer);
|
||||||
@ -325,7 +325,7 @@ void Label::paint(QPainter *painter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
buffPainter.end();
|
buffPainter.end();
|
||||||
painter->drawPixmap(buffer.rect(), buffer, buffer.rect());
|
painter->drawPixmap(contentsRect(), buffer, buffer.rect());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user