31 #include <QtCore/QPointer>
32 #include <QtCore/QTime>
33 #include <QtCore/QBasicTimer>
59 virtual void paint(QPainter *painter,
const QStyleOption *option);
83 virtual void paint(QPainter *painter,
const QStyleOption *option);
104 QBasicTimer animationTimer;
108 #endif // ANIMATION_H
void setRunning(bool val)
const QTime & startTime() const
void drawBlendedImage(QPainter *painter, QRect rect, float value)
virtual void paint(QPainter *painter, const QStyleOption *option)
Animation * widgetAnimation(const QWidget *) const
virtual void paint(QPainter *painter, const QStyleOption *option)
StyleAnimator(QObject *parent=nullptr)
void setEndImage(const QImage &image)
void setStartTime(const QTime &startTime)
void setWidget(QWidget *widget)
void timerEvent(QTimerEvent *)
void stopAnimation(const QWidget *)
QPointer< QWidget > m_widget
void setStartImage(const QImage &image)
void setDuration(int duration)
void startAnimation(Animation *)