1 #ifndef MUSICTRANSITIONANIMATIONLABEL_H
2 #define MUSICTRANSITIONANIMATIONLABEL_H
25 class QPropertyAnimation;
62 inline void setAnimation(
bool enable) noexcept { m_animationEnabled = enable; }
71 const QPixmap& renderPixmap()
const noexcept;
85 bool isRunning()
const;
91 void setPixmap(const QPixmap &pix);
97 void valueChanged(const QVariant &value);
101 void animationFinished();
107 virtual
void paintEvent(QPaintEvent *event) override final;
112 bool m_animationEnabled;
113 QPixmap m_renderPixmap;
114 QPixmap m_currentPixmap, m_previousPixmap;
115 QPropertyAnimation *m_animation;
120 #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.
#define TTK_DECLARE_MODULE(Class)
void setAnimation(bool enable) noexcept