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 slider that can show such as tooltip. More...
#include <musicmovinglabelslider.h>
Public Member Functions | |
MusicMovingLabelSlider (QWidget *parent=nullptr) | |
MusicMovingLabelSlider (Qt::Orientation orientation, QWidget *parent=nullptr) | |
~MusicMovingLabelSlider () | |
![]() | |
MusicMovingClickedSlider (QWidget *parent=nullptr) | |
MusicMovingClickedSlider (Qt::Orientation orientation, QWidget *parent=nullptr) | |
bool | isMoving () const |
void | setMoving (bool m) |
![]() | |
TTKClickedSlider (QWidget *parent=nullptr) | |
TTKClickedSlider (Qt::Orientation orientation, QWidget *parent=nullptr) | |
Private Member Functions | |
virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
virtual void | mouseMoveEvent (QMouseEvent *event) overridefinal |
virtual void | enterEvent (QtEnterEvent *event) overridefinal |
virtual void | leaveEvent (QEvent *event) overridefinal |
QPoint | limitLableGeometry (int x, int y, int z) |
Private Attributes | |
QLabel * | m_textLabel |
Additional Inherited Members | |
![]() | |
void | setValue (int value) |
![]() | |
void | sliderReleasedAt (int pos) |
![]() | |
void | clicked () |
![]() | |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
![]() | |
virtual bool | event (QEvent *event) overridefinal |
![]() | |
bool | m_isMoving |
![]() | |
int | m_value |
bool | m_mousePressed |
The class of the slider that can show such as tooltip.
Definition at line 29 of file musicmovinglabelslider.h.
|
explicit |
Object constructor.
Definition at line 4 of file musicmovinglabelslider.cpp.
|
explicit |
Definition at line 10 of file musicmovinglabelslider.cpp.
References TTK::UI::LabelStyle01, and m_textLabel.
MusicMovingLabelSlider::~MusicMovingLabelSlider | ( | ) |
Object destructor.
Definition at line 21 of file musicmovinglabelslider.cpp.
References m_textLabel.
|
finaloverrideprivatevirtual |
Definition at line 57 of file musicmovinglabelslider.cpp.
References m_textLabel.
|
finaloverrideprivatevirtual |
Definition at line 65 of file musicmovinglabelslider.cpp.
References m_textLabel.
Set the tool tip gemetry.
Definition at line 71 of file musicmovinglabelslider.cpp.
Referenced by mouseMoveEvent().
|
finaloverrideprivatevirtual |
Reimplemented from MusicMovingClickedSlider.
Definition at line 35 of file musicmovinglabelslider.cpp.
References TTKTime::formatDuration(), limitLableGeometry(), m_textLabel, and MusicMovingClickedSlider::mouseMoveEvent().
|
finaloverrideprivatevirtual |
Override the widget event.
Reimplemented from MusicMovingClickedSlider.
Definition at line 26 of file musicmovinglabelslider.cpp.
References m_textLabel, and MusicMovingClickedSlider::mousePressEvent().
|
private |
Definition at line 57 of file musicmovinglabelslider.h.
Referenced by enterEvent(), leaveEvent(), mouseMoveEvent(), mousePressEvent(), MusicMovingLabelSlider(), and ~MusicMovingLabelSlider().