Oops, we need to set the parent as the target animated widget

if no parent was set yet.


svn path=/trunk/KDE/kdelibs/; revision=1061402
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-12-11 16:50:26 +00:00
parent 485635f07b
commit 6df20d182c

View File

@ -62,6 +62,8 @@ void Animation::setDuration(int duration)
void Animation::setWidgetToAnimate(QGraphicsWidget* widget)
{
d->animObject = widget;
if (parent() == 0)
setParent(widget);
}
QGraphicsWidget* Animation::widgetToAnimate()