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:
parent
485635f07b
commit
6df20d182c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user