5#ifndef QSTYLEANIMATION_P_H
6#define QSTYLEANIMATION_P_H
8#include <QtWidgets/private/qtwidgetsglobal_p.h>
33 QStyleAnimation(QObject *target);
34 virtual ~QStyleAnimation();
36 QObject *target()
const;
38 int duration()
const override;
39 void setDuration(
int duration);
42 void setDelay(
int delay);
44 QTime startTime()
const;
45 void setStartTime(QTime time);
55 FrameRate frameRate()
const;
56 void setFrameRate(FrameRate fps);
64 virtual bool isUpdateNeeded()
const;
65 virtual void updateCurrentTime(
int time) override;
80 QProgressStyleAnimation(
int speed, QObject *target);
82 int animationStep()
const;
83 int progressStep(
int width)
const;
86 void setSpeed(
int speed);
89 bool isUpdateNeeded()
const override;
101 QNumberStyleAnimation(QObject *target);
103 qreal startValue()
const;
104 void setStartValue(qreal value);
106 qreal endValue()
const;
107 void setEndValue(qreal value);
109 qreal currentValue()
const;
112 bool isUpdateNeeded()
const override;
125 enum Type { Transition, Pulse };
127 QBlendStyleAnimation(Type type, QObject *target);
129 QImage startImage()
const;
130 void setStartImage(
const QImage& image);
132 QImage endImage()
const;
133 void setEndImage(
const QImage& image);
135 QImage currentImage()
const;
138 virtual void updateCurrentTime(
int time) override;
152 enum Mode { Activating, Deactivating };
154 QScrollbarStyleAnimation(Mode mode, QObject *target);
158 bool wasActive()
const;
159 void setActive(
bool active);
162 void updateCurrentTime(
int time) override;
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(animation)
static QImage blendedImage(const QImage &start, const QImage &end, float alpha)
static const qreal ScrollBarFadeOutDelay
static QT_BEGIN_NAMESPACE const qreal ScrollBarFadeOutDuration