summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstyleanimation_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qstyleanimation_p.h')
-rw-r--r--src/widgets/styles/qstyleanimation_p.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyleanimation_p.h b/src/widgets/styles/qstyleanimation_p.h
index 3188eebebc..d9869533ef 100644
--- a/src/widgets/styles/qstyleanimation_p.h
+++ b/src/widgets/styles/qstyleanimation_p.h
@@ -110,6 +110,30 @@ private:
mutable int _step;
};
+class QNumberStyleAnimation : public QStyleAnimation
+{
+ Q_OBJECT
+
+public:
+ QNumberStyleAnimation(QObject *target);
+
+ qreal startValue() const;
+ void setStartValue(qreal value);
+
+ qreal endValue() const;
+ void setEndValue(qreal value);
+
+ qreal currentValue() const;
+
+protected:
+ bool isUpdateNeeded() const;
+
+private:
+ qreal _start;
+ qreal _end;
+ mutable qreal _prev;
+};
+
QT_END_NAMESPACE
#endif // QSTYLEANIMATION_P_H