respecdt the contents rect

svn path=/trunk/KDE/kdelibs/; revision=1124318
This commit is contained in:
Aaron J. Seigo 2010-05-08 20:43:51 +00:00
parent 3c80abf735
commit fb2d1cf524

View File

@ -294,7 +294,7 @@ void Label::paint(QPainter *painter,
QGraphicsProxyWidget::paint(painter, option, widget);
} else {
const int gradientLength = 25;
QPixmap buffer(size().toSize());
QPixmap buffer(contentsRect().size().toSize());
buffer.fill(Qt::transparent);
QPainter buffPainter(&buffer);
@ -325,7 +325,7 @@ void Label::paint(QPainter *painter,
}
buffPainter.end();
painter->drawPixmap(buffer.rect(), buffer, buffer.rect());
painter->drawPixmap(contentsRect(), buffer, buffer.rect());
}
}