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 show progress widget. More...
#include <musicprogresswidget.h>
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 |
The class of the show progress widget.
Definition at line 30 of file musicprogresswidget.h.
|
explicit |
MusicProgressWidget::~MusicProgressWidget | ( | ) |
Object destructor.
Definition at line 25 of file musicprogresswidget.cpp.
References m_background, m_progressBar, and m_textLabel.
|
private |
Create all widget in layout.
Definition at line 32 of file musicprogresswidget.cpp.
References TTK::UI::BackgroundStyle11, TTK::UI::ColorStyle06, TTK::UI::FontStyle01, m_background, m_progressBar, m_textLabel, TTK::UI::ProgressBar01, and TTK::UI::ToolButtonStyle04.
Referenced by MusicProgressWidget().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 71 of file musicprogresswidget.cpp.
References TTK::setBorderShadow().
|
finaloverrideprivatevirtual |
Definition at line 65 of file musicprogresswidget.cpp.
References m_progressBar.
void MusicProgressWidget::setTitle | ( | const QString & | name | ) |
Set widget title.
Definition at line 60 of file musicprogresswidget.cpp.
References m_textLabel.
Referenced by MusicSongsContainerWidget::importSongsByPath(), and MusicSongsListPlayTableWidget::removeItemAt().
|
slot |
Override show function.
Definition at line 78 of file musicprogresswidget.cpp.
References G_BACKGROUND_PTR, m_background, MusicBackgroundImage::m_pix, and MusicExtractWrapper::outputSkin().
Referenced by MusicSongsContainerWidget::importSongsByPath(), and MusicSongsListPlayTableWidget::removeItemAt().
|
private |
Definition at line 66 of file musicprogresswidget.h.
Referenced by initialize(), show(), and ~MusicProgressWidget().
|
private |
Definition at line 67 of file musicprogresswidget.h.
Referenced by initialize(), resizeEvent(), and ~MusicProgressWidget().
|
private |
Definition at line 66 of file musicprogresswidget.h.
Referenced by initialize(), setTitle(), and ~MusicProgressWidget().