make sure all animations have a parent

This commit is contained in:
laserpants 2016-06-21 13:22:22 +03:00
parent 1f557c106b
commit aa73c87251
1 changed files with 3 additions and 3 deletions

View File

@ -75,15 +75,15 @@ void DialogPrivate::init()
QPropertyAnimation *animation;
animation = new QPropertyAnimation(proxy, "opacity");
animation = new QPropertyAnimation(proxy, "opacity", q);
animation->setDuration(280);
machine->addDefaultAnimation(animation);
animation = new QPropertyAnimation(effect, "color");
animation = new QPropertyAnimation(effect, "color", q);
animation->setDuration(280);
machine->addDefaultAnimation(animation);
animation = new QPropertyAnimation(window, "offset");
animation = new QPropertyAnimation(window, "offset", q);
animation->setDuration(280);
animation->setEasingCurve(QEasingCurve::OutCirc);
machine->addDefaultAnimation(animation);