1 #ifndef MUSICTRANSITIONANIMATIONLABEL_H
2 #define MUSICTRANSITIONANIMATIONLABEL_H
25 class QPropertyAnimation;
61 inline void setAnimation(
bool enable) noexcept { m_animationEnabled = enable; }
70 const QPixmap& renderPixmap()
const noexcept;
84 bool isRunning()
const;
90 void setPixmap(const QPixmap &pix);
96 void valueChanged(const QVariant &value);
100 void animationFinished();
106 virtual
void paintEvent(QPaintEvent *event) override final;
111 bool m_animationEnabled;
112 QPixmap m_renderPixmap;
113 QPixmap m_currentPixmap, m_previousPixmap;
114 QPropertyAnimation *m_animation;
119 #endif // MUSICTRANSITIONANIMATIONLABEL_H
#define TTK_MODULE_EXPORT
bool animation() const noexcept
The class of the image render.
The namespace of the algorithm.
The class of the label transition animation.
void setAnimation(bool enable) noexcept