the wallpaper is always a (0, 0) of the containment; don't rely on the boundingRect to give us that

svn path=/trunk/KDE/kdelibs/; revision=945044
This commit is contained in:
Aaron J. Seigo 2009-03-26 19:14:58 +00:00
parent bf640ddf9d
commit 7dd4f42869

View File

@ -1090,7 +1090,7 @@ void Containment::resizeEvent(QGraphicsSceneResizeEvent *event)
} }
if (d->wallpaper) { if (d->wallpaper) {
d->wallpaper->setBoundingRect(boundingRect()); d->wallpaper->setBoundingRect(QRectF(QPointF(0, 0), size()));
} }
} }
@ -1335,7 +1335,7 @@ void Containment::setWallpaper(const QString &pluginName, const QString &mode)
} }
if (d->wallpaper) { if (d->wallpaper) {
d->wallpaper->setBoundingRect(boundingRect()); d->wallpaper->setBoundingRect(QRectF(QPointF(0, 0), size()));
d->wallpaper->setRenderingMode(mode); d->wallpaper->setRenderingMode(mode);
if (newPlugin) { if (newPlugin) {