From aa73c87251214db395257b58c00dae9456814cdc Mon Sep 17 00:00:00 2001 From: laserpants Date: Tue, 21 Jun 2016 13:22:22 +0300 Subject: [PATCH] make sure all animations have a parent --- components/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/dialog.cpp b/components/dialog.cpp index 7f07bd8..d740e05 100644 --- a/components/dialog.cpp +++ b/components/dialog.cpp @@ -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);