draw on _own_ contents rect
svn path=/trunk/KDE/kdelibs/; revision=938463
This commit is contained in:
parent
2236b76ee4
commit
71dfaf6ac8
@ -2358,9 +2358,9 @@ void AppletOverlayWidget::paint(QPainter *painter,
|
|||||||
if (parentWidget()->size() != size()) {
|
if (parentWidget()->size() != size()) {
|
||||||
resize(parentWidget()->size());
|
resize(parentWidget()->size());
|
||||||
}
|
}
|
||||||
backgroundShape = PaintUtils::roundedRectangle(parentWidget()->contentsRect(), 5);
|
backgroundShape = PaintUtils::roundedRectangle(contentsRect(), 5);
|
||||||
} else {
|
} else {
|
||||||
backgroundShape = parentItem()->shape();
|
backgroundShape = shape();
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
Loading…
Reference in New Issue
Block a user