always draw behind the target

svn path=/trunk/KDE/kdelibs/; revision=1061624
This commit is contained in:
Marco Martin 2009-12-12 14:33:27 +00:00
parent 744065edab
commit 177956d55e

View File

@ -121,6 +121,8 @@ void ItemBackground::setTarget(const QRectF &newGeometry)
}
if (d->target && d->target->isVisible() && !isVisible()) {
//draw behind the target
setZValue(d->target->zValue()-1);
setGeometry(newGeometry);
d->oldGeometry = newGeometry;
show();