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 text slider widget. More...
#include <musictextsliderwidget.h>
Public Member Functions | |
MusicTextSliderWidget (QWidget *parent=nullptr) | |
void | setMaxValue (int max) |
void | setValue (int value) |
void | setFrontText (const QString &text) |
void | setBackText (const QString &text) |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
int | m_maxValue |
int | m_currentValue |
QString | m_frontText |
QString | m_backText |
The class of the text slider widget.
Definition at line 28 of file musictextsliderwidget.h.
|
explicit |
Object constructor.
Definition at line 5 of file musictextsliderwidget.cpp.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 37 of file musictextsliderwidget.cpp.
References m_backText, m_currentValue, m_frontText, and m_maxValue.
void MusicTextSliderWidget::setBackText | ( | const QString & | text | ) |
Set back text value.
Definition at line 31 of file musictextsliderwidget.cpp.
References m_backText.
Referenced by MusicConnectLocalWidget::updateDeviceDisplay().
void MusicTextSliderWidget::setFrontText | ( | const QString & | text | ) |
Set front text value.
Definition at line 25 of file musictextsliderwidget.cpp.
References m_frontText.
Referenced by MusicConnectLocalWidget::updateDeviceDisplay().
void MusicTextSliderWidget::setMaxValue | ( | int | max | ) |
Set max value.
Definition at line 13 of file musictextsliderwidget.cpp.
References m_maxValue, and TTK::max().
Referenced by MusicConnectLocalWidget::updateDeviceDisplay().
void MusicTextSliderWidget::setValue | ( | int | value | ) |
Set current value.
Definition at line 19 of file musictextsliderwidget.cpp.
References m_currentValue.
Referenced by MusicConnectLocalWidget::updateDeviceDisplay().
|
private |
Definition at line 62 of file musictextsliderwidget.h.
Referenced by paintEvent(), and setBackText().
|
private |
Definition at line 61 of file musictextsliderwidget.h.
Referenced by paintEvent(), and setValue().
|
private |
Definition at line 62 of file musictextsliderwidget.h.
Referenced by paintEvent(), and setFrontText().
|
private |
Definition at line 61 of file musictextsliderwidget.h.
Referenced by paintEvent(), and setMaxValue().