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 table widget. More...
#include <musicsmoothmovingwidget.h>
Public Slots | |
void | timeToAnimation () |
void | valueChanged (int value) |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Public Member Functions | |
MusicSmoothMovingTableWidget (QWidget *parent=nullptr) | |
~MusicSmoothMovingTableWidget () | |
void | setMovedScrollBar (QScrollBar *bar=nullptr) |
![]() | |
MusicAbstractTableWidget (QWidget *parent=nullptr) | |
![]() | |
TTKAbstractTableWidget (QWidget *parent=nullptr) | |
~TTKAbstractTableWidget () | |
TTKIntList | selectedIndexList () const |
Protected Member Functions | |
virtual void | wheelEvent (QWheelEvent *event) override |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
Protected Attributes | |
bool | m_initialized |
int | m_previousValue |
int | m_deltaValue |
QScrollBar * | m_scrollBar |
QTimer * | m_animationTimer |
QPropertyAnimation * | m_slowAnimation |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the slider smooth moving table widget.
Definition at line 30 of file musicsmoothmovingwidget.h.
|
explicit |
Object constructor.
Definition at line 8 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, TTK::UI::ScrollBarStyle03, timeToAnimation(), and TTK_DN_MS.
MusicSmoothMovingTableWidget::~MusicSmoothMovingTableWidget | ( | ) |
Object destructor.
Definition at line 23 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, and m_slowAnimation.
void MusicSmoothMovingTableWidget::setMovedScrollBar | ( | QScrollBar * | bar = nullptr | ) |
Set current moved scroll bar.
Definition at line 30 of file musicsmoothmovingwidget.cpp.
References m_scrollBar, m_slowAnimation, TTK_DN_S2MS, and valueChanged().
Referenced by MusicSongsContainerWidget::createWidgetItem(), and MusicPlayedListPopWidget::initialize().
|
slot |
Time out to start animation.
Definition at line 40 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, m_deltaValue, m_initialized, m_previousValue, m_scrollBar, m_slowAnimation, and TTK_ITEM_SIZE_M.
Referenced by MusicSmoothMovingTableWidget().
|
slot |
Current scroll bar value changed.
Definition at line 57 of file musicsmoothmovingwidget.cpp.
References m_previousValue.
Referenced by setMovedScrollBar().
|
overrideprotectedvirtual |
Override the widget event.
Reimplemented in MusicSongsListPlayTableWidget.
Definition at line 62 of file musicsmoothmovingwidget.cpp.
References m_animationTimer, m_deltaValue, m_initialized, m_previousValue, m_scrollBar, m_slowAnimation, and QtWheelDelta.
Referenced by MusicSongsListPlayTableWidget::wheelEvent().
|
protected |
Definition at line 68 of file musicsmoothmovingwidget.h.
Referenced by MusicSmoothMovingTableWidget(), timeToAnimation(), wheelEvent(), and ~MusicSmoothMovingTableWidget().
|
protected |
Definition at line 66 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), and wheelEvent().
|
protected |
Definition at line 65 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), and wheelEvent().
|
protected |
Definition at line 66 of file musicsmoothmovingwidget.h.
Referenced by timeToAnimation(), valueChanged(), and wheelEvent().
|
protected |
Definition at line 67 of file musicsmoothmovingwidget.h.
Referenced by MusicSongsListPlayedTableWidget::selectRow(), setMovedScrollBar(), timeToAnimation(), and wheelEvent().
|
protected |
Definition at line 69 of file musicsmoothmovingwidget.h.
Referenced by setMovedScrollBar(), timeToAnimation(), wheelEvent(), and ~MusicSmoothMovingTableWidget().