|
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 lrc color preview label. More...
#include <musicpreviewlabel.h>
Inheritance diagram for MusicColorPreviewLabel:Public Member Functions | |
| MusicColorPreviewLabel (QWidget *parent=nullptr) | |
| void | setColors (const QList< QColor > &colors) |
| QList< QColor > | colors () const noexcept |
| QColor | color () const |
Public Member Functions inherited from TTKClickedLabel | |
| TTKClickedLabel (QWidget *parent=nullptr) | |
| TTKClickedLabel (const QString &text, QWidget *parent=nullptr) | |
| void | blockOption (bool block) noexcept |
Private Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
| QList< QColor > | m_gradientColors |
| QLinearGradient | m_linearGradient |
Additional Inherited Members | |
Signals inherited from TTKClickedLabel | |
| void | clicked () |
Protected Member Functions inherited from TTKClickedLabel | |
| virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
Protected Attributes inherited from TTKClickedLabel | |
| bool | m_blockOption |
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.
|
noexcept |
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().
1.8.8