if the target gets shown show the background too

svn path=/trunk/KDE/kdelibs/; revision=1063611
This commit is contained in:
Marco Martin 2009-12-18 22:10:32 +00:00
parent 20bed9f073
commit 7732b62f16

View File

@ -201,6 +201,8 @@ bool ItemBackground::eventFilter(QObject *watched, QEvent *event)
event->type() == QEvent::GraphicsSceneMove) { event->type() == QEvent::GraphicsSceneMove) {
// We need to wait for the parent widget to resize... // We need to wait for the parent widget to resize...
QTimer::singleShot(0, this, SLOT(refreshCurrentTarget()) ); QTimer::singleShot(0, this, SLOT(refreshCurrentTarget()) );
} else if (event->type() == QEvent::Show) {
setTargetItem(targetWidget);
} }
} }