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.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyleanimation_p.h b/src/widgets/styles/qstyleanimation_p.h
index d9869533ef..9dddc7b62c 100644
--- a/src/widgets/styles/qstyleanimation_p.h
+++ b/src/widgets/styles/qstyleanimation_p.h
@@ -44,6 +44,7 @@
#include "qabstractanimation.h"
#include "qdatetime.h"
+#include "qimage.h"
QT_BEGIN_NAMESPACE
@@ -134,6 +135,33 @@ private:
mutable qreal _prev;
};
+class QBlendStyleAnimation : public QStyleAnimation
+{
+ Q_OBJECT
+
+public:
+ enum Type { Transition, Pulse };
+
+ QBlendStyleAnimation(Type type, QObject *target);
+
+ QImage startImage() const;
+ void setStartImage(const QImage& image);
+
+ QImage endImage() const;
+ void setEndImage(const QImage& image);
+
+ QImage currentImage() const;
+
+protected:
+ virtual void updateCurrentTime(int time);
+
+private:
+ Type _type;
+ QImage _start;
+ QImage _end;
+ QImage _current;
+};
+
QT_END_NAMESPACE
#endif // QSTYLEANIMATION_P_H