1 #ifndef MUSICSMOOTHMOVINGWIDGET_H
2 #define MUSICSMOOTHMOVINGWIDGET_H
22 #include <QScrollArea>
25 class QPropertyAnimation;
46 void setScrollBar(QScrollBar *bar);
55 void updateValue(
int value);
61 void timeToAnimation();
65 void valueChanged(
int value);
94 void setMovedScrollBar(QScrollBar *bar =
nullptr);
100 virtual void wheelEvent(QWheelEvent *event)
override;
105 inline QScrollBar*
scrollBar()
const noexcept {
return m_interface.scrollBar(); }
128 void setMovedScrollBar(QScrollBar *bar =
nullptr);
134 virtual void wheelEvent(QWheelEvent *event)
override;
141 #endif // MUSICSMOOTHMOVINGWIDGET_H
#define TTK_MODULE_EXPORT
The class of the slider smooth moving interface.
QTimer * m_animationTimer
QPropertyAnimation * m_moveAnimation
QScrollBar * scrollBar() const noexcept