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 round animation widget. More...
#include <musicroundanimationlabel.h>
Public Slots | |
void | start () |
void | stop () |
Public Member Functions | |
MusicRoundAnimationLabel (QWidget *parent=nullptr) | |
~MusicRoundAnimationLabel () | |
void | setPixmap (const QPixmap &pix) |
void | setInterval (int value) |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
QPixmap | m_pixmap |
QTimer | m_timer |
int | m_rotateAngle |
The class of the round animation widget.
Definition at line 29 of file musicroundanimationlabel.h.
|
explicit |
Object constructor.
Definition at line 5 of file musicroundanimationlabel.cpp.
MusicRoundAnimationLabel::~MusicRoundAnimationLabel | ( | ) |
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 38 of file musicroundanimationlabel.cpp.
References m_pixmap, m_rotateAngle, and TTK_AN_360.
void MusicRoundAnimationLabel::setInterval | ( | int | value | ) |
Set rotating widget interval.
Definition at line 23 of file musicroundanimationlabel.cpp.
References m_timer.
void MusicRoundAnimationLabel::setPixmap | ( | const QPixmap & | pix | ) |
Set rotating widget background pixmap.
Definition at line 18 of file musicroundanimationlabel.cpp.
References m_pixmap.
|
slot |
Start to rotating widget.
Definition at line 28 of file musicroundanimationlabel.cpp.
References m_timer.
|
slot |
Stop to rotating widget.
Definition at line 33 of file musicroundanimationlabel.cpp.
References m_timer.
Referenced by ~MusicRoundAnimationLabel().
|
private |
Definition at line 68 of file musicroundanimationlabel.h.
Referenced by paintEvent(), and setPixmap().
|
private |
Definition at line 70 of file musicroundanimationlabel.h.
Referenced by paintEvent().
|
private |
Definition at line 69 of file musicroundanimationlabel.h.
Referenced by MusicRoundAnimationLabel(), setInterval(), start(), and stop().