fix the configure overlay appearance - we want the contentsrect, not the

rect

svn path=/trunk/KDE/kdelibs/; revision=1020851
This commit is contained in:
Marco Martin 2009-09-07 11:24:35 +00:00
parent 17970540c6
commit 38e309aec5

View File

@ -2693,8 +2693,8 @@ void AppletOverlayWidget::paint(QPainter *painter,
QPainterPath backgroundShape;
if (!applet || applet->backgroundHints() & Applet::StandardBackground) {
//FIXME: a resize here is nasty, but perhaps still better than an eventfilter just for that..
if (parentWidget()->size() != size()) {
resize(parentWidget()->size());
if (parentWidget()->contentsRect().size() != size()) {
resize(parentWidget()->contentsRect().size());
}
backgroundShape = PaintUtils::roundedRectangle(contentsRect(), 5);
} else {