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 lrc color preview label. More...
#include <musicpreviewlabel.h>
Public Member Functions | |
MusicColorPreviewLabel (QWidget *parent=nullptr) | |
void | setColors (const QList< QColor > &colors) |
QList< QColor > | colors () const |
QColor | color () 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 | |
QList< QColor > | m_gradientColors |
QLinearGradient | m_linearGradient |
Additional Inherited Members | |
![]() | |
void | clicked () |
The class of the lrc color preview label.
Definition at line 27 of file musicpreviewlabel.h.
|
explicit |
Object constructor.
Definition at line 4 of file musicpreviewlabel.cpp.
References m_linearGradient.
QColor MusicColorPreviewLabel::color | ( | ) | const |
Get linear gradient color.
Definition at line 28 of file musicpreviewlabel.cpp.
References m_gradientColors.
QList< QColor > MusicColorPreviewLabel::colors | ( | ) | const |
Get linear gradient colors.
Definition at line 23 of file musicpreviewlabel.cpp.
References m_gradientColors.
Referenced by setColors().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 33 of file musicpreviewlabel.cpp.
References m_linearGradient.
void MusicColorPreviewLabel::setColors | ( | const QList< QColor > & | colors | ) |
Set linear gradient colors.
Definition at line 10 of file musicpreviewlabel.cpp.
References colors(), m_gradientColors, and m_linearGradient.
|
private |
Definition at line 56 of file musicpreviewlabel.h.
Referenced by color(), colors(), and setColors().
|
private |
Definition at line 57 of file musicpreviewlabel.h.
Referenced by MusicColorPreviewLabel(), paintEvent(), and setColors().