TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the slider smooth moving scroll area widget. More...
#include <musicsmoothmovingwidget.h>
Public Slots | |
void | timeToAnimation () |
void | valueChanged (int value) |
Public Member Functions | |
MusicSmoothMovingScrollArea (QWidget *parent=nullptr) | |
~MusicSmoothMovingScrollArea () | |
void | setMovedScrollBar (QScrollBar *bar=nullptr) |
Private Member Functions | |
virtual void | wheelEvent (QWheelEvent *event) overridefinal |
Private Attributes | |
bool | m_initialized |
int | m_previousValue |
int | m_deltaValue |
QScrollBar * | m_scrollBar |
QTimer * | m_animationTimer |
QPropertyAnimation * | m_slowAnimation |
The class of the slider smooth moving scroll area widget.
Definition at line 77 of file musicsmoothmovingwidget.h.
|
explicit |
Object constructor.
Definition at line 87 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, TTK::UI::ScrollBarStyle03, timeToAnimation(), and TTK_DN_MS.
MusicSmoothMovingScrollArea::~MusicSmoothMovingScrollArea | ( | ) |
Object destructor.
Definition at line 107 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, and m_slowAnimation.
void MusicSmoothMovingScrollArea::setMovedScrollBar | ( | QScrollBar * | bar = nullptr | ) |
Set current moved scroll bar.
Definition at line 114 of file musicsmoothmovingwidget.cpp.
References m_scrollBar, m_slowAnimation, TTK_DN_S2MS, and valueChanged().
|
slot |
Time out to start animation.
Definition at line 123 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, m_deltaValue, m_initialized, m_previousValue, m_scrollBar, m_slowAnimation, and TTK_ITEM_SIZE_M.
Referenced by MusicSmoothMovingScrollArea().
|
slot |
Current scroll bar value changed.
Definition at line 140 of file musicsmoothmovingwidget.cpp.
References m_previousValue.
Referenced by setMovedScrollBar().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 145 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, m_deltaValue, m_initialized, m_previousValue, m_scrollBar, m_slowAnimation, and QtWheelDelta.
|
private |
Definition at line 115 of file musicsmoothmovingwidget.h.
Referenced by MusicSmoothMovingScrollArea(), timeToAnimation(), wheelEvent(), and ~MusicSmoothMovingScrollArea().
|
private |
Definition at line 113 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), and wheelEvent().
|
private |
Definition at line 112 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), and wheelEvent().
|
private |
Definition at line 113 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), valueChanged(), and wheelEvent().
|
private |
Definition at line 114 of file musicsmoothmovingwidget.h.
Referenced by setMovedScrollBar(), timeToAnimation(), and wheelEvent().
|
private |
Definition at line 116 of file musicsmoothmovingwidget.h.
Referenced by setMovedScrollBar(), timeToAnimation(), wheelEvent(), and ~MusicSmoothMovingScrollArea().