summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-04-17 08:40:54 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-17 19:22:19 +0200
commit5a05d0716ffe707d0e918916328aa1c7206259f9 (patch)
tree3f0357d03fa97a54505671418713756edc515b3c /src
parent9557cc6536866a9809241ad3bf541e7b1ac84edf (diff)
Emit animation driver signals after we change the state.
Change-Id: I4d5d6efdcb519cd4bb53626ae9412a4f5f130689 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/animation/qabstractanimation.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}
}