draw on _own_ contents rect

svn path=/trunk/KDE/kdelibs/; revision=938463
This commit is contained in:
Marco Martin 2009-03-11 22:06:12 +00:00
parent 2236b76ee4
commit 71dfaf6ac8

View File

@ -2358,9 +2358,9 @@ void AppletOverlayWidget::paint(QPainter *painter,
if (parentWidget()->size() != size()) {
resize(parentWidget()->size());
}
backgroundShape = PaintUtils::roundedRectangle(parentWidget()->contentsRect(), 5);
backgroundShape = PaintUtils::roundedRectangle(contentsRect(), 5);
} else {
backgroundShape = parentItem()->shape();
backgroundShape = shape();
}
painter->save();