|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the cut slider widget. More...
#include <musiccutsliderwidget.h>
Inheritance diagram for MusicCutSliderWidget:Public Slots | |
| void | buttonMoveUpdate () |
| void | buttonReleaseLeft () |
| void | buttonReleaseRight () |
Signals | |
| void | posChanged (qint64 start, qint64 end) |
| void | buttonReleaseChanged (qint64 pos) |
Public Member Functions | |
| MusicCutSliderWidget (QWidget *parent=nullptr) | |
| ~MusicCutSliderWidget () | |
| void | setPosition (qint64 position) |
| void | setDuration (qint64 duration) |
| void | resizeGeometry (int width, int height) |
Private Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) overridefinal |
| virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
| virtual void | mouseMoveEvent (QMouseEvent *event) overridefinal |
| virtual void | mouseReleaseEvent (QMouseEvent *event) overridefinal |
Private Attributes | |
| MusicMoveButton * | m_leftControl |
| MusicMoveButton * | m_rightControl |
| int | m_width |
| int | m_height |
| qint64 | m_duration |
| qint64 | m_position |
The class of the cut slider widget.
Definition at line 65 of file musiccutsliderwidget.h.
|
explicit |
Object constructor.
Definition at line 57 of file musiccutsliderwidget.cpp.
References buttonMoveUpdate(), buttonReleaseLeft(), buttonReleaseRight(), m_leftControl, m_rightControl, PAINT_BUTTON_HEIGHT, PAINT_BUTTON_WIDTH, and resizeGeometry().
| MusicCutSliderWidget::~MusicCutSliderWidget | ( | ) |
Object destructor.
Definition at line 75 of file musiccutsliderwidget.cpp.
References m_leftControl, and m_rightControl.
|
slot |
Moving button pos updated.
Definition at line 111 of file musiccutsliderwidget.cpp.
References m_duration, m_leftControl, m_rightControl, m_width, PAINT_BUTTON_WIDTH, and posChanged().
Referenced by MusicCutSliderWidget().
|
signal |
Moving button pos release changed.
Referenced by buttonReleaseLeft(), and buttonReleaseRight().
|
slot |
Left moving button released.
Definition at line 151 of file musiccutsliderwidget.cpp.
References buttonReleaseChanged(), m_duration, m_leftControl, m_width, and PAINT_BUTTON_WIDTH.
Referenced by MusicCutSliderWidget().
|
slot |
Left moving button released.
Definition at line 158 of file musiccutsliderwidget.cpp.
References buttonReleaseChanged(), m_duration, m_rightControl, m_width, and PAINT_BUTTON_WIDTH.
Referenced by MusicCutSliderWidget().
|
finaloverrideprivatevirtual |
Definition at line 186 of file musiccutsliderwidget.cpp.
|
finaloverrideprivatevirtual |
Definition at line 181 of file musiccutsliderwidget.cpp.
|
finaloverrideprivatevirtual |
Definition at line 191 of file musiccutsliderwidget.cpp.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 165 of file musiccutsliderwidget.cpp.
References TTK::UI::Color01, m_height, m_leftControl, m_position, m_rightControl, m_width, PAINT_BUTTON_WIDTH, PAINT_HANDER, and PAINT_SLIDER_HEIGHT.
|
signal |
Moving button pos changed.
Referenced by buttonMoveUpdate().
Resize geometry bound by resize called.
Definition at line 96 of file musiccutsliderwidget.cpp.
References m_height, m_leftControl, m_rightControl, m_width, PAINT_BUTTON_WIDTH, and PAINT_SLIDER_HEIGHT.
Referenced by MusicCutSliderWidget().
| void MusicCutSliderWidget::setDuration | ( | qint64 | duration | ) |
Set current duration.
Definition at line 91 of file musiccutsliderwidget.cpp.
References m_duration.
| void MusicCutSliderWidget::setPosition | ( | qint64 | position | ) |
Set current position.
Definition at line 81 of file musiccutsliderwidget.cpp.
References m_duration, m_position, and m_width.
|
private |
Definition at line 127 of file musiccutsliderwidget.h.
Referenced by buttonMoveUpdate(), buttonReleaseLeft(), buttonReleaseRight(), setDuration(), and setPosition().
|
private |
Definition at line 126 of file musiccutsliderwidget.h.
Referenced by paintEvent(), and resizeGeometry().
|
private |
Definition at line 125 of file musiccutsliderwidget.h.
Referenced by buttonMoveUpdate(), buttonReleaseLeft(), MusicCutSliderWidget(), paintEvent(), resizeGeometry(), and ~MusicCutSliderWidget().
|
private |
Definition at line 127 of file musiccutsliderwidget.h.
Referenced by paintEvent(), and setPosition().
|
private |
Definition at line 125 of file musiccutsliderwidget.h.
Referenced by buttonMoveUpdate(), buttonReleaseRight(), MusicCutSliderWidget(), paintEvent(), resizeGeometry(), and ~MusicCutSliderWidget().
|
private |
Definition at line 126 of file musiccutsliderwidget.h.
Referenced by buttonMoveUpdate(), buttonReleaseLeft(), buttonReleaseRight(), paintEvent(), resizeGeometry(), and setPosition().
1.8.8