21 Q_PROPERTY(
int duration READ duration WRITE setDuration BINDABLE bindableDuration)
22 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval
23 BINDABLE bindableUpdateInterval)
24 Q_PROPERTY(
int currentTime READ currentTime WRITE setCurrentTime BINDABLE bindableCurrentTime)
25 Q_PROPERTY(Direction direction READ direction WRITE setDirection BINDABLE bindableDirection)
26 Q_PROPERTY(
int loopCount READ loopCount WRITE setLoopCount BINDABLE bindableLoopCount)
27 Q_PROPERTY(QEasingCurve easingCurve READ easingCurve WRITE setEasingCurve
28 BINDABLE bindableEasingCurve)
40 explicit QTimeLine(
int duration = 1000, QObject *parent =
nullptr);
45 int loopCount()
const;
46 void setLoopCount(
int count);
47 QBindable<
int> bindableLoopCount();
49 Direction direction()
const;
50 void setDirection(Direction direction);
51 QBindable<Direction> bindableDirection();
54 void setDuration(
int duration);
55 QBindable<
int> bindableDuration();
57 int startFrame()
const;
58 void setStartFrame(
int frame);
60 void setEndFrame(
int frame);
61 void setFrameRange(
int startFrame,
int endFrame);
63 int updateInterval()
const;
64 void setUpdateInterval(
int interval);
65 QBindable<
int> bindableUpdateInterval();
67 QEasingCurve easingCurve()
const;
68 void setEasingCurve(
const QEasingCurve &curve);
69 QBindable<QEasingCurve> bindableEasingCurve();
71 int currentTime()
const;
72 QBindable<
int> bindableCurrentTime();
73 int currentFrame()
const;
74 qreal currentValue()
const;
76 int frameForTime(
int msec)
const;
77 virtual qreal valueForTime(
int msec)
const;
83 void setPaused(
bool paused);
84 void setCurrentTime(
int msec);
85 void toggleDirection();
88 void valueChanged(qreal x, QPrivateSignal);
89 void frameChanged(
int, QPrivateSignal);
90 void stateChanged(QTimeLine::State newState, QPrivateSignal);
91 void finished(QPrivateSignal);
94 void timerEvent(QTimerEvent *event) override;
97 Q_DISABLE_COPY(QTimeLine)
98 Q_DECLARE_PRIVATE(QTimeLine)