24 Q_PROPERTY(State state READ state NOTIFY stateChanged BINDABLE bindableState)
25 Q_PROPERTY(
int loopCount READ loopCount WRITE setLoopCount BINDABLE bindableLoopCount)
26 Q_PROPERTY(
int currentTime READ currentTime WRITE setCurrentTime BINDABLE bindableCurrentTime)
27 Q_PROPERTY(
int currentLoop READ currentLoop NOTIFY currentLoopChanged
28 BINDABLE bindableCurrentLoop)
29 Q_PROPERTY(Direction direction READ direction WRITE setDirection NOTIFY directionChanged
30 BINDABLE bindableDirection)
31 Q_PROPERTY(
int duration READ duration)
52 QAbstractAnimation(QObject *parent =
nullptr);
53 virtual ~QAbstractAnimation();
56 QBindable<QAbstractAnimation::State> bindableState()
const;
58 QAnimationGroup *group()
const;
60 Direction direction()
const;
61 void setDirection(Direction direction);
62 QBindable<Direction> bindableDirection();
64 int currentTime()
const;
65 QBindable<
int> bindableCurrentTime();
67 int currentLoopTime()
const;
69 int loopCount()
const;
70 void setLoopCount(
int loopCount);
71 QBindable<
int> bindableLoopCount();
73 int currentLoop()
const;
74 QBindable<
int> bindableCurrentLoop()
const;
76 virtual int duration()
const = 0;
77 int totalDuration()
const;
81 void stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
82 void currentLoopChanged(
int currentLoop);
83 void directionChanged(QAbstractAnimation::Direction);
86 void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
91 void setCurrentTime(
int msecs);
94 QAbstractAnimation(QAbstractAnimationPrivate &dd, QObject *parent =
nullptr);
95 bool event(QEvent *event) override;
97 virtual void updateCurrentTime(
int currentTime) = 0;
98 virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
99 virtual void updateDirection(QAbstractAnimation::Direction direction);
102 Q_DISABLE_COPY(QAbstractAnimation)
103 Q_DECLARE_PRIVATE(QAbstractAnimation)