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 background palette label. More...
#include <musicbackgroundpalettewidget.h>
Signals | |
void | currentColorToFileChanged (const QColor &color) |
void | currentColorToMemoryChanged (const QString &path) |
Public Member Functions | |
MusicBackgroundPalette (QWidget *parent=nullptr) | |
~MusicBackgroundPalette () | |
void | setPixmap (const QColor &color) |
Private Member Functions | |
virtual void | enterEvent (QtEnterEvent *event) overridefinal |
virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
void | copyColorToMemory (const QColor &color) |
Private Attributes | |
QColor | m_color |
The class of the background palette label.
Definition at line 32 of file musicbackgroundpalettewidget.h.
|
explicit |
Object constructor.
Definition at line 12 of file musicbackgroundpalettewidget.cpp.
MusicBackgroundPalette::~MusicBackgroundPalette | ( | ) |
Object destructor.
Definition at line 18 of file musicbackgroundpalettewidget.cpp.
References TTK_COLOR_FILE.
|
private |
Copy color to memory.
Definition at line 30 of file musicbackgroundpalettewidget.cpp.
References currentColorToMemoryChanged(), and TTK_COLOR_FILE.
Referenced by enterEvent().
|
signal |
Current color confirm changed.
Referenced by mousePressEvent().
|
signal |
Current color memory confirm changed.
Referenced by copyColorToMemory().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 40 of file musicbackgroundpalettewidget.cpp.
References copyColorToMemory(), and m_color.
|
finaloverrideprivatevirtual |
Definition at line 46 of file musicbackgroundpalettewidget.cpp.
References currentColorToFileChanged(), and m_color.
void MusicBackgroundPalette::setPixmap | ( | const QColor & | color | ) |
Set current label background by color.
Definition at line 23 of file musicbackgroundpalettewidget.cpp.
References m_color.
Referenced by MusicBackgroundPaletteWidget::MusicBackgroundPaletteWidget().
|
private |
Definition at line 72 of file musicbackgroundpalettewidget.h.
Referenced by enterEvent(), mousePressEvent(), and setPixmap().