summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/keyframe_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation/backend/keyframe_p.h')
-rw-r--r--src/animation/backend/keyframe_p.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/animation/backend/keyframe_p.h b/src/animation/backend/keyframe_p.h
index 550c9fde0..9d2c3bc47 100644
--- a/src/animation/backend/keyframe_p.h
+++ b/src/animation/backend/keyframe_p.h
@@ -48,6 +48,7 @@
// We mean it.
//
+#include <Qt3DAnimation/qkeyframe.h>
#include <QtGui/qvector2d.h>
QT_BEGIN_NAMESPACE
@@ -57,13 +58,6 @@ namespace Animation {
struct Keyframe
{
- enum Interpolation {
- Constant,
- Linear,
- Bezier
- // TODO: Add other easing types
- };
-
inline bool operator==(const Keyframe &rhs) const
{
return value == rhs.value
@@ -75,7 +69,7 @@ struct Keyframe
float value; // Value (time is stored separately in FCurve)
QVector2D leftControlPoint; // Bezier control point (time, value)
QVector2D rightControlPoint; // Bezier control point (time, value)
- Interpolation interpolation; // Method to use for evaluation between this Keyframe and the next
+ QKeyFrame::InterpolationType interpolation; // Method to use for evaluation between this Keyframe and the next
};
} // namespace Animation