make sure all animations have a parent

This commit is contained in:
laserpants 2016-06-21 15:10:37 +03:00
parent 4d40f4554c
commit 0e61481422
1 changed files with 6 additions and 6 deletions

View File

@ -54,10 +54,10 @@ void RaisedButtonPrivate::init()
transition = new QEventTransition(q, QEvent::MouseButtonPress);
transition->setTargetState(pressedState);
animation = new QPropertyAnimation(effect, "offset");
animation = new QPropertyAnimation(effect, "offset", q);
animation->setDuration(100);
transition->addAnimation(animation);
animation = new QPropertyAnimation(effect, "blurRadius");
animation = new QPropertyAnimation(effect, "blurRadius", q);
animation->setDuration(100);
transition->addAnimation(animation);
@ -68,10 +68,10 @@ void RaisedButtonPrivate::init()
transition = new QEventTransition(q, QEvent::MouseButtonDblClick);
transition->setTargetState(pressedState);
animation = new QPropertyAnimation(effect, "offset");
animation = new QPropertyAnimation(effect, "offset", q);
animation->setDuration(100);
transition->addAnimation(animation);
animation = new QPropertyAnimation(effect, "blurRadius");
animation = new QPropertyAnimation(effect, "blurRadius", q);
animation->setDuration(100);
transition->addAnimation(animation);
@ -82,10 +82,10 @@ void RaisedButtonPrivate::init()
transition = new QEventTransition(q, QEvent::MouseButtonRelease);
transition->setTargetState(normalState);
animation = new QPropertyAnimation(effect, "offset");
animation = new QPropertyAnimation(effect, "offset", q);
transition->addAnimation(animation);
animation->setDuration(100);
animation = new QPropertyAnimation(effect, "blurRadius");
animation = new QPropertyAnimation(effect, "blurRadius", q);
animation->setDuration(100);
transition->addAnimation(animation);