summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlanimation_p_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-02-18 03:12:34 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-02-18 05:17:16 (GMT)
commitd031fce2871df878709ba5d67202a5edc08470fe (patch)
treee2b73aa5a684d4a014a6eaf3ca45ffcce0b75035 /src/declarative/util/qmlanimation_p_p.h
parentf1b1e45c3c66a9061becbee38aaabb3653a20d9d (diff)
downloadQt-d031fce2871df878709ba5d67202a5edc08470fe.zip
Qt-d031fce2871df878709ba5d67202a5edc08470fe.tar.gz
Qt-d031fce2871df878709ba5d67202a5edc08470fe.tar.bz2
Add a RotationAnimation element.
This is needed to provide more control of rotation direction when animating.
Diffstat (limited to 'src/declarative/util/qmlanimation_p_p.h')
-rw-r--r--src/declarative/util/qmlanimation_p_p.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/util/qmlanimation_p_p.h b/src/declarative/util/qmlanimation_p_p.h
index ee0c291..a1181ed 100644
--- a/src/declarative/util/qmlanimation_p_p.h
+++ b/src/declarative/util/qmlanimation_p_p.h
@@ -358,6 +358,7 @@ public:
QString properties;
QList<QObject *> targets;
QList<QObject *> exclude;
+ QString defaultProperties;
bool fromSourced;
bool fromIsDefined:1;
@@ -373,6 +374,15 @@ public:
static void convertVariant(QVariant &variant, int type);
};
+class QmlRotationAnimationPrivate : public QmlPropertyAnimationPrivate
+{
+ Q_DECLARE_PUBLIC(QmlRotationAnimation)
+public:
+ QmlRotationAnimationPrivate() : direction(QmlRotationAnimation::Shortest) {}
+
+ QmlRotationAnimation::RotationDirection direction;
+};
+
QT_END_NAMESPACE
#endif // QMLANIMATION_P_H