TTKMusicPlayer
3.7.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 local manager statistic table widget. More...
#include <musiclocalmanagerwidget.h>
Public Member Functions | |
MusicLocalManagerStatisticTableWidget (QWidget *parent=nullptr) | |
~MusicLocalManagerStatisticTableWidget () | |
void | addCellItem (const MusicSongStatisticItem &song) |
void | resizeSection () const |
Public Member Functions inherited from MusicAbstractTableWidget | |
MusicAbstractTableWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from TTKAbstractTableWidget | |
TTKAbstractTableWidget (QWidget *parent=nullptr) | |
~TTKAbstractTableWidget () | |
TTKIntList | selectedIndexList () const |
Additional Inherited Members | |
Public Slots inherited from TTKAbstractTableWidget | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Protected Member Functions inherited from TTKAbstractTableWidget | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
Protected Attributes inherited from TTKAbstractTableWidget | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the local manager statistic table widget.
Definition at line 45 of file musiclocalmanagerwidget.h.
|
explicit |
Object constructor.
Definition at line 52 of file musiclocalmanagerwidget.cpp.
References TTK::UI::ScrollBarStyle04.
MusicLocalManagerStatisticTableWidget::~MusicLocalManagerStatisticTableWidget | ( | ) |
Object destructor.
Definition at line 72 of file musiclocalmanagerwidget.cpp.
References TTKAbstractTableWidget::removeItems().
void MusicLocalManagerStatisticTableWidget::addCellItem | ( | const MusicSongStatisticItem & | song | ) |
Create cell items by input data.
Definition at line 77 of file musiclocalmanagerwidget.cpp.
References QtItemSetTextAlignment.
Referenced by MusicLocalManagerWidget::updateStatisticWidget().
void MusicLocalManagerStatisticTableWidget::resizeSection | ( | ) | const |
Resize section bound by resize called.
Definition at line 98 of file musiclocalmanagerwidget.cpp.
References G_SETTING_PTR, MusicSettingManager::WidgetSize, and WINDOW_WIDTH_MIN.
Referenced by MusicLocalManagerWidget::resizeWidget().