31 Q_DECLARE_PRIVATE(QQuickSmoothedAnimation)
33 Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity NOTIFY velocityChanged)
34 Q_PROPERTY(ReversingMode reversingMode READ reversingMode WRITE setReversingMode NOTIFY reversingModeChanged)
35 Q_PROPERTY(qreal maximumEasingTime READ maximumEasingTime WRITE setMaximumEasingTime NOTIFY maximumEasingTimeChanged)
36 QML_NAMED_ELEMENT(SmoothedAnimation)
37 QML_ADDED_IN_VERSION(2, 0)
40 enum ReversingMode { Eased, Immediate, Sync };
43 QQuickSmoothedAnimation(QObject *parent =
nullptr);
45 ReversingMode reversingMode()
const;
46 void setReversingMode(ReversingMode);
48 int duration()
const override;
49 void setDuration(
int) override;
51 qreal velocity()
const;
52 void setVelocity(qreal);
54 int maximumEasingTime()
const;
55 void setMaximumEasingTime(
int);
57 QAbstractAnimationJob* transition(QQuickStateActions &actions,
58 QQmlProperties &modified,
59 TransitionDirection direction,
60 QObject *defaultTarget =
nullptr) override;
62 void velocityChanged();
63 void reversingModeChanged();
64 void maximumEasingTimeChanged();