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 setting preview label. More...
#include <musicpreviewlabel.h>
Public Member Functions | |
MusicPreviewLabel (QWidget *parent=nullptr) | |
void | setLinearGradient (const MusicPreviewLabelItem &item) |
void | setLinearGradient (const QList< QColor > &front, const QList< QColor > &back) |
void | setTransparent (int trans) |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
QFont | m_font |
QLinearGradient | m_linearGradient |
QLinearGradient | m_maskLinearGradient |
int | m_transparent |
The class of the lrc setting preview label.
Definition at line 76 of file musicpreviewlabel.h.
|
explicit |
Object constructor.
Definition at line 56 of file musicpreviewlabel.cpp.
References m_linearGradient, and m_maskLinearGradient.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 95 of file musicpreviewlabel.cpp.
References TTK::Widget::fontTextHeight(), m_font, m_linearGradient, and m_maskLinearGradient.
void MusicPreviewLabel::setLinearGradient | ( | const MusicPreviewLabelItem & | item | ) |
Set linear gradient item.
Definition at line 64 of file musicpreviewlabel.cpp.
References MusicPreviewLabelItem::m_background, MusicPreviewLabelItem::m_family, m_font, MusicPreviewLabelItem::m_frontground, MusicPreviewLabelItem::m_size, and MusicPreviewLabelItem::m_type.
Referenced by MusicSettingWidget::lrcTransparentValue().
void MusicPreviewLabel::setLinearGradient | ( | const QList< QColor > & | front, |
const QList< QColor > & | back | ||
) |
Set linear gradient and front and back.
Definition at line 74 of file musicpreviewlabel.cpp.
References m_linearGradient, m_maskLinearGradient, and m_transparent.
|
inline |
Set current transparent.
Definition at line 97 of file musicpreviewlabel.h.
Referenced by MusicSettingWidget::lrcTransparentValue().
|
private |
Definition at line 105 of file musicpreviewlabel.h.
Referenced by paintEvent(), and setLinearGradient().
|
private |
Definition at line 106 of file musicpreviewlabel.h.
Referenced by MusicPreviewLabel(), paintEvent(), and setLinearGradient().
|
private |
Definition at line 107 of file musicpreviewlabel.h.
Referenced by MusicPreviewLabel(), paintEvent(), and setLinearGradient().
|
private |
Definition at line 108 of file musicpreviewlabel.h.
Referenced by setLinearGradient().