From e5ef84617cb2259834399d9f22c08a5df0e8f43e Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 14 May 2017 17:32:12 +0300 Subject: [PATCH] Add missing parents --- src/SlidingStackWidget.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SlidingStackWidget.cc b/src/SlidingStackWidget.cc index c4d2f7cf..472f750b 100644 --- a/src/SlidingStackWidget.cc +++ b/src/SlidingStackWidget.cc @@ -106,21 +106,21 @@ void SlidingStackWidget::slideInWidget(QWidget *next_widget, AnimationDirection next_widget->raise(); // Animate both the next and now widget. - QPropertyAnimation *animation_now = new QPropertyAnimation(widget(now), "pos"); + QPropertyAnimation *animation_now = new QPropertyAnimation(widget(now), "pos", this); animation_now->setDuration(speed_); animation_now->setEasingCurve(animation_type_); animation_now->setStartValue(QPoint(pnow.x(), pnow.y())); animation_now->setEndValue(QPoint(pnow.x() + offset_x, pnow.y())); - QPropertyAnimation *animation_next = new QPropertyAnimation(next_widget, "pos"); + QPropertyAnimation *animation_next = new QPropertyAnimation(next_widget, "pos", this); animation_next->setDuration(speed_); animation_next->setEasingCurve(animation_type_); animation_next->setStartValue(QPoint(pnext.x() - offset_x, pnext.y())); animation_next->setEndValue(QPoint(pnext.x(), pnext.y())); - QParallelAnimationGroup *animation_group = new QParallelAnimationGroup; + QParallelAnimationGroup *animation_group = new QParallelAnimationGroup(this); animation_group->addAnimation(animation_now); animation_group->addAnimation(animation_next);