TTKMusicPlayer
4.2.0.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 Member Functions | |
MusicSmoothMovingTableWidget (QWidget *parent=nullptr) | |
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 |
QScrollBar * | scrollBar () const noexcept |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const noexcept |
Private Attributes | |
MusicSmoothMovingInterface | m_interface |
Additional Inherited Members | |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the slider smooth moving table widget.
Definition at line 83 of file musicsmoothmovingwidget.h.
|
explicit |
Object constructor.
Definition at line 83 of file musicsmoothmovingwidget.cpp.
References TTK::UI::ScrollBarStyle03.
|
inlineprotectednoexcept |
Get current moved scroll bar.
Definition at line 107 of file musicsmoothmovingwidget.h.
Referenced by MusicSongsListPlayedTableWidget::selectRow().
void MusicSmoothMovingTableWidget::setMovedScrollBar | ( | QScrollBar * | bar = nullptr | ) |
Set current moved scroll bar.
Definition at line 89 of file musicsmoothmovingwidget.cpp.
References m_interface, and MusicSmoothMovingInterface::setScrollBar().
Referenced by MusicSongsContainerWidget::createWidgetItem(), and MusicPlayedListPopWidget::initialize().
|
overrideprotectedvirtual |
Override the widget event.
Reimplemented in MusicSongsListPlayTableWidget.
Definition at line 94 of file musicsmoothmovingwidget.cpp.
References m_interface, QtWheelDelta, and MusicSmoothMovingInterface::updateValue().
Referenced by MusicSongsListPlayTableWidget::wheelEvent().
|
private |
Definition at line 110 of file musicsmoothmovingwidget.h.
Referenced by setMovedScrollBar(), and wheelEvent().