diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-05 09:49:54 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-05 09:51:38 (GMT) |
commit | 32a9237c49fd126bee0cbe02c3c5bff5145a6e21 (patch) | |
tree | 6fc313f62e0eafeda35483c9f3630f4275a472ec /demos/sub-attaq/animationmanager.cpp | |
parent | 429c7c6760c100685e9800b89fca7f0afd2d8abc (diff) | |
download | Qt-32a9237c49fd126bee0cbe02c3c5bff5145a6e21.zip Qt-32a9237c49fd126bee0cbe02c3c5bff5145a6e21.tar.gz Qt-32a9237c49fd126bee0cbe02c3c5bff5145a6e21.tar.bz2 |
Simplification and use of QGraphicsObject in sub-attas demo
Reviewed-by: alexis
Diffstat (limited to 'demos/sub-attaq/animationmanager.cpp')
-rw-r--r-- | demos/sub-attaq/animationmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/demos/sub-attaq/animationmanager.cpp b/demos/sub-attaq/animationmanager.cpp index 916dd21..eb5a125 100644 --- a/demos/sub-attaq/animationmanager.cpp +++ b/demos/sub-attaq/animationmanager.cpp @@ -77,16 +77,14 @@ void AnimationManager::unregisterAllAnimations() void AnimationManager::pauseAll() { - foreach (QAbstractAnimation* animation, animations) - { + foreach (QAbstractAnimation* animation, animations) { if (animation->state() == QAbstractAnimation::Running) animation->pause(); } } void AnimationManager::resumeAll() { - foreach (QAbstractAnimation* animation, animations) - { + foreach (QAbstractAnimation* animation, animations) { if (animation->state() == QAbstractAnimation::Paused) animation->resume(); } |