summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qabstractanimation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/animation/qabstractanimation.h')
-rw-r--r--src/corelib/animation/qabstractanimation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/animation/qabstractanimation.h b/src/corelib/animation/qabstractanimation.h
index 43190cc9e2..152a914475 100644
--- a/src/corelib/animation/qabstractanimation.h
+++ b/src/corelib/animation/qabstractanimation.h
@@ -49,8 +49,7 @@ class QAbstractAnimationPrivate;
class Q_CORE_EXPORT QAbstractAnimation : public QObject
{
Q_OBJECT
- Q_ENUMS(State)
- Q_ENUMS(Direction)
+
Q_PROPERTY(State state READ state NOTIFY stateChanged)
Q_PROPERTY(int loopCount READ loopCount WRITE setLoopCount)
Q_PROPERTY(int currentTime READ currentTime WRITE setCurrentTime)
@@ -63,12 +62,14 @@ public:
Forward,
Backward
};
+ Q_ENUM(Direction)
enum State {
Stopped,
Paused,
Running
};
+ Q_ENUM(State)
enum DeletionPolicy {
KeepWhenStopped = 0,