From 5a05d0716ffe707d0e918916328aa1c7206259f9 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 17 Apr 2013 08:40:54 +0200 Subject: Emit animation driver signals after we change the state. Change-Id: I4d5d6efdcb519cd4bb53626ae9412a4f5f130689 Reviewed-by: Friedemann Kleint --- src/corelib/animation/qabstractanimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index f650e58c5a..c58dfdbda1 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -827,8 +827,8 @@ void QAnimationDriver::start() { Q_D(QAnimationDriver); if (!d->running) { - emit started(); d->running = true; + emit started(); } } @@ -837,8 +837,8 @@ void QAnimationDriver::stop() { Q_D(QAnimationDriver); if (d->running) { - emit stopped(); d->running = false; + emit stopped(); } } -- cgit v1.2.3