TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicRoundAnimationLabel Class Reference

The class of the round animation widget. More...

#include <musicroundanimationlabel.h>

+ Inheritance diagram for MusicRoundAnimationLabel:

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
 

Detailed Description

The class of the round animation widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 29 of file musicroundanimationlabel.h.

Constructor & Destructor Documentation

MusicRoundAnimationLabel::MusicRoundAnimationLabel ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 5 of file musicroundanimationlabel.cpp.

References m_timer, and TTK_DN_MS.

MusicRoundAnimationLabel::~MusicRoundAnimationLabel ( )

Object destructor.

Definition at line 13 of file musicroundanimationlabel.cpp.

References stop().

Member Function Documentation

void MusicRoundAnimationLabel::paintEvent ( QPaintEvent *  event)
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.

void MusicRoundAnimationLabel::start ( )
slot

Start to rotating widget.

Definition at line 28 of file musicroundanimationlabel.cpp.

References m_timer.

void MusicRoundAnimationLabel::stop ( )
slot

Stop to rotating widget.

Definition at line 33 of file musicroundanimationlabel.cpp.

References m_timer.

Referenced by ~MusicRoundAnimationLabel().

Member Data Documentation

QPixmap MusicRoundAnimationLabel::m_pixmap
private

Definition at line 68 of file musicroundanimationlabel.h.

Referenced by paintEvent(), and setPixmap().

int MusicRoundAnimationLabel::m_rotateAngle
private

Definition at line 70 of file musicroundanimationlabel.h.

Referenced by paintEvent().

QTimer MusicRoundAnimationLabel::m_timer
private

Definition at line 69 of file musicroundanimationlabel.h.

Referenced by MusicRoundAnimationLabel(), setInterval(), start(), and stop().


The documentation for this class was generated from the following files: