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 Member Functions | Private Member Functions | Private Attributes | List of all members
MusicRatingLabel Class Reference

The class of the rating label. More...

#include <musicratinglabel.h>

+ Inheritance diagram for MusicRatingLabel:

Public Member Functions

 MusicRatingLabel (QWidget *parent=nullptr)
 
 MusicRatingLabel (int value, QWidget *parent=nullptr)
 
void setValue (int value)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) overridefinal
 

Private Attributes

int m_value
 

Detailed Description

The class of the rating label.

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

Definition at line 29 of file musicratinglabel.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 5 of file musicratinglabel.cpp.

MusicRatingLabel::MusicRatingLabel ( int  value,
QWidget *  parent = nullptr 
)
explicit

Definition at line 11 of file musicratinglabel.cpp.

Member Function Documentation

void MusicRatingLabel::paintEvent ( QPaintEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 23 of file musicratinglabel.cpp.

References m_value.

void MusicRatingLabel::setValue ( int  value)

Set input value (0 - 5).

Definition at line 18 of file musicratinglabel.cpp.

References m_value.

Member Data Documentation

int MusicRatingLabel::m_value
private

Definition at line 51 of file musicratinglabel.h.

Referenced by paintEvent(), and setValue().


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