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
MusicProgressWidget Class Reference

The class of the show progress widget. More...

#include <musicprogresswidget.h>

+ Inheritance diagram for MusicProgressWidget:

Public Slots

void show ()
 

Public Member Functions

 MusicProgressWidget (QWidget *parent=nullptr)
 
 ~MusicProgressWidget ()
 
void setTitle (const QString &name)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) overridefinal
 
virtual void resizeEvent (QResizeEvent *event) overridefinal
 
void initialize ()
 

Private Attributes

QLabel * m_background
 
QLabel * m_textLabel
 
QProgressBar * m_progressBar
 

Detailed Description

The class of the show progress widget.

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

Definition at line 30 of file musicprogresswidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 9 of file musicprogresswidget.cpp.

References initialize().

MusicProgressWidget::~MusicProgressWidget ( )

Object destructor.

Definition at line 25 of file musicprogresswidget.cpp.

References m_background, m_progressBar, and m_textLabel.

Member Function Documentation

void MusicProgressWidget::initialize ( )
private
void MusicProgressWidget::paintEvent ( QPaintEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 71 of file musicprogresswidget.cpp.

References TTK::setBorderShadow().

void MusicProgressWidget::resizeEvent ( QResizeEvent *  event)
finaloverrideprivatevirtual

Definition at line 65 of file musicprogresswidget.cpp.

References m_progressBar.

void MusicProgressWidget::setTitle ( const QString &  name)
void MusicProgressWidget::show ( )
slot

Member Data Documentation

QLabel* MusicProgressWidget::m_background
private

Definition at line 66 of file musicprogresswidget.h.

Referenced by initialize(), show(), and ~MusicProgressWidget().

QProgressBar* MusicProgressWidget::m_progressBar
private

Definition at line 67 of file musicprogresswidget.h.

Referenced by initialize(), resizeEvent(), and ~MusicProgressWidget().

QLabel * MusicProgressWidget::m_textLabel
private

Definition at line 66 of file musicprogresswidget.h.

Referenced by initialize(), setTitle(), and ~MusicProgressWidget().


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