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 music spectrum layout item. More...
#include <musicspectrumlayoutwidget.h>
Public Member Functions | |
MusicSpectrumLayoutItem (QWidget *parent=nullptr) | |
void | addCellItem (const QString &item, const QString &tip) |
void | setChecked (bool checked) |
bool | isChecked () const |
![]() | |
TTKClickedLabel (QWidget *parent=nullptr) | |
TTKClickedLabel (const QString &text, QWidget *parent=nullptr) | |
void | blockOption (bool block) |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
bool | m_isSelected |
Additional Inherited Members | |
![]() | |
void | clicked () |
The class of the music spectrum layout item.
Definition at line 30 of file musicspectrumlayoutwidget.h.
|
explicit |
Object constructor.
Definition at line 8 of file musicspectrumlayoutwidget.cpp.
Create cell item by input data.
Definition at line 15 of file musicspectrumlayoutwidget.cpp.
References TTK::Image::roundedPixmap().
Referenced by MusicSpectrumLayoutWidget::addCellItems().
bool MusicSpectrumLayoutItem::isChecked | ( | ) | const |
Get spectrum item check state.
Definition at line 27 of file musicspectrumlayoutwidget.cpp.
References m_isSelected.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 32 of file musicspectrumlayoutwidget.cpp.
References m_isSelected.
void MusicSpectrumLayoutItem::setChecked | ( | bool | checked | ) |
Set spectrum item check state.
Definition at line 21 of file musicspectrumlayoutwidget.cpp.
References m_isSelected.
|
private |
Definition at line 59 of file musicspectrumlayoutwidget.h.
Referenced by isChecked(), paintEvent(), and setChecked().