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 songs list function widget. More...
#include <musicsongslistfunctionwidget.h>
Signals | |
void | deleteObject () |
Public Member Functions | |
MusicSongsListFunctionWidget (QWidget *parent=nullptr) | |
~MusicSongsListFunctionWidget () | |
void | active () |
Private Slots | |
void | leaveTimeout () |
void | animationFinished () |
Private Member Functions | |
void | start (bool play, int end) |
virtual void | enterEvent (QtEnterEvent *event) overridefinal |
virtual void | leaveEvent (QEvent *event) overridefinal |
Private Attributes | |
QTimer | m_timer |
QWidget * | m_mainWidget |
QPropertyAnimation * | m_animation |
float | m_currentAnimationValue |
The class of the songs list function widget.
Definition at line 31 of file musicsongslistfunctionwidget.h.
|
explicit |
Object constructor.
Definition at line 8 of file musicsongslistfunctionwidget.cpp.
References animationFinished(), MusicApplication::instance(), leaveTimeout(), m_animation, m_mainWidget, m_timer, TTK::UI::TinyBtnLocalSearch, TTK::UI::TinyBtnLocation, and TTK_DN_S2MS.
MusicSongsListFunctionWidget::~MusicSongsListFunctionWidget | ( | ) |
Object destructor.
Definition at line 48 of file musicsongslistfunctionwidget.cpp.
References m_animation, and m_mainWidget.
void MusicSongsListFunctionWidget::active | ( | ) |
Set current animation active.
Definition at line 54 of file musicsongslistfunctionwidget.cpp.
References m_timer.
Referenced by MusicSongsContainerWidget::showFloatWidget().
|
privateslot |
Animation finished.
Definition at line 80 of file musicsongslistfunctionwidget.cpp.
References deleteObject(), m_animation, m_currentAnimationValue, TTK_SIGNAL, and TTK_SIGNLE_SHOT.
Referenced by MusicSongsListFunctionWidget().
|
signal |
Delete self object.
Referenced by animationFinished().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 89 of file musicsongslistfunctionwidget.cpp.
References m_currentAnimationValue, m_mainWidget, and start().
|
finaloverrideprivatevirtual |
Definition at line 99 of file musicsongslistfunctionwidget.cpp.
References m_mainWidget, and start().
|
privateslot |
Leave Time out.
Definition at line 74 of file musicsongslistfunctionwidget.cpp.
References m_currentAnimationValue, and start().
Referenced by MusicSongsListFunctionWidget().
|
private |
Start to turn on animation.
Definition at line 60 of file musicsongslistfunctionwidget.cpp.
References m_animation, m_currentAnimationValue, and m_timer.
Referenced by enterEvent(), leaveEvent(), and leaveTimeout().
|
private |
Definition at line 79 of file musicsongslistfunctionwidget.h.
Referenced by animationFinished(), MusicSongsListFunctionWidget(), start(), and ~MusicSongsListFunctionWidget().
|
private |
Definition at line 80 of file musicsongslistfunctionwidget.h.
Referenced by animationFinished(), enterEvent(), leaveTimeout(), and start().
|
private |
Definition at line 78 of file musicsongslistfunctionwidget.h.
Referenced by enterEvent(), leaveEvent(), MusicSongsListFunctionWidget(), and ~MusicSongsListFunctionWidget().
|
private |
Definition at line 77 of file musicsongslistfunctionwidget.h.
Referenced by active(), MusicSongsListFunctionWidget(), and start().