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 lrc play float widget. More...
#include <musiclrcfloatplaywidget.h>
Public Slots | |
void | switchToPlayState () |
Public Member Functions | |
MusicLrcFloatPlayWidget (QWidget *parent=nullptr) | |
~MusicLrcFloatPlayWidget () | |
void | resizeGeometry (int width, int height) |
![]() | |
MusicAbstractFloatWidget (QWidget *parent=nullptr) | |
~MusicAbstractFloatWidget () | |
void | setBlockAnimation (bool b) |
Private Member Functions | |
virtual void | enterEvent (QtEnterEvent *event) overridefinal |
void | setCurrentPlayState () const |
Private Attributes | |
QToolButton * | m_buttonPrevious |
QToolButton * | m_buttonNext |
QToolButton * | m_buttonKey |
Additional Inherited Members | |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
virtual void | contextMenuEvent (QContextMenuEvent *) overridefinal |
virtual void | mousePressEvent (QMouseEvent *) overridefinal |
virtual void | mouseMoveEvent (QMouseEvent *) overridefinal |
virtual void | mouseReleaseEvent (QMouseEvent *) overridefinal |
void | animationEnter () |
void | animationLeave () |
![]() | |
QPropertyAnimation * | m_animation |
QRect | m_rectEnter |
QRect | m_rectLeave |
bool | m_blockAnimation |
The class of the lrc play float widget.
Definition at line 29 of file musiclrcfloatplaywidget.h.
|
explicit |
Object constructor.
Definition at line 6 of file musiclrcfloatplaywidget.cpp.
References TTK::UI::BtnNext, TTK::UI::BtnPrevious, MusicApplication::instance(), m_buttonKey, m_buttonNext, m_buttonPrevious, resizeGeometry(), setCurrentPlayState(), and switchToPlayState().
MusicLrcFloatPlayWidget::~MusicLrcFloatPlayWidget | ( | ) |
Object destructor.
Definition at line 47 of file musiclrcfloatplaywidget.cpp.
References m_buttonKey, m_buttonNext, and m_buttonPrevious.
|
finaloverrideprivatevirtual |
Override the widget event.
Reimplemented from MusicAbstractFloatWidget.
Definition at line 73 of file musiclrcfloatplaywidget.cpp.
References MusicAbstractFloatWidget::enterEvent(), and setCurrentPlayState().
Resize geometry bound by given width and height.
Definition at line 54 of file musiclrcfloatplaywidget.cpp.
References MusicAbstractFloatWidget::animationEnter(), MusicAbstractFloatWidget::m_blockAnimation, MusicAbstractFloatWidget::m_rectEnter, and MusicAbstractFloatWidget::m_rectLeave.
Referenced by MusicLrcContainerForInterior::createFloatPlayWidget(), MusicLrcFloatPlayWidget(), and MusicLrcContainerForInterior::resizeWidth().
|
private |
Set current play state icon.
Definition at line 79 of file musiclrcfloatplaywidget.cpp.
References TTK::UI::BtnPause, TTK::UI::BtnPlay, MusicApplication::instance(), and m_buttonKey.
Referenced by enterEvent(), MusicLrcFloatPlayWidget(), and switchToPlayState().
|
slot |
Set current player to play or not.
Definition at line 67 of file musiclrcfloatplaywidget.cpp.
References MusicApplication::instance(), setCurrentPlayState(), and MusicApplication::switchToPlayState().
Referenced by MusicLrcFloatPlayWidget().
|
private |
Definition at line 64 of file musiclrcfloatplaywidget.h.
Referenced by MusicLrcFloatPlayWidget(), setCurrentPlayState(), and ~MusicLrcFloatPlayWidget().
|
private |
Definition at line 64 of file musiclrcfloatplaywidget.h.
Referenced by MusicLrcFloatPlayWidget(), and ~MusicLrcFloatPlayWidget().
|
private |
Definition at line 64 of file musiclrcfloatplaywidget.h.
Referenced by MusicLrcFloatPlayWidget(), and ~MusicLrcFloatPlayWidget().