aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickanimatorjob_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-10-04 15:42:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-08 08:02:21 +0200
commitaeb8416d948b69d55dda45ed4ebe85585325fedc (patch)
tree47590a9df24e66f67719a5f74a4710b8418efd4c /src/quick/util/qquickanimatorjob_p.h
parent29e3d02c26d264adb2b581b3511d29efb124f331 (diff)
Several smaller fixes to Animators.
Backwards animations are not supported for animators as the animation system cannot handle uncontrolled backwards animations. Make sure we write back values only for the animators that have run at all. Clockwise rotation to 0 can easily end up on 360 as a result the _q_interpolateClockwise function not being entirely correct. Change-Id: If69b8555a1361f46600a40e80419b65438c18097 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/quick/util/qquickanimatorjob_p.h')
-rw-r--r--src/quick/util/qquickanimatorjob_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/util/qquickanimatorjob_p.h b/src/quick/util/qquickanimatorjob_p.h
index 44155c1f93..bc9c65c347 100644
--- a/src/quick/util/qquickanimatorjob_p.h
+++ b/src/quick/util/qquickanimatorjob_p.h
@@ -133,6 +133,8 @@ public:
bool isTransform() const { return m_isTransform; }
bool isUniform() const { return m_isUniform; }
+ bool hasBeenRunning() const { return m_hasBeenRunning; }
+
qreal value() const;
QQuickAnimatorController *controller() const { return m_controller; }
@@ -155,6 +157,7 @@ protected:
uint m_feedback : 1;
uint m_isTransform : 1;
uint m_isUniform : 1;
+ uint m_hasBeenRunning : 1;
};
class QQuickTransformAnimatorJob : public QQuickAnimatorJob