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 horizontal layout float animation widget. More...
#include <musiclayoutanimationwidget.h>
Public Member Functions | |
MusicHLayoutAnimationWidget (QWidget *parent=nullptr) | |
virtual void | start () overridefinal |
![]() | |
MusicLayoutAnimationWidget (QWidget *parent=nullptr) | |
~MusicLayoutAnimationWidget () | |
void | stop () |
void | connectTo (QObject *parent) |
void | addStretch (int stretch=0) |
void | addWidget (QWidget *widget, int stretch=0, Qt::Alignment alignment=Qt::Alignment()) |
void | removeWidget (QWidget *widget) |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Additional Inherited Members | |
![]() | |
bool | m_isAnimating |
float | m_currentValue |
QWidget * | m_mainWidget |
QBoxLayout * | m_widgetLayout |
QPropertyAnimation * | m_animation |
The class of the horizontal layout float animation widget.
Definition at line 121 of file musiclayoutanimationwidget.h.
|
explicit |
Object constructor.
Definition at line 137 of file musiclayoutanimationwidget.cpp.
References MusicLayoutAnimationWidget::m_mainWidget, and MusicLayoutAnimationWidget::m_widgetLayout.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 158 of file musiclayoutanimationwidget.cpp.
References MusicLayoutAnimationWidget::m_currentValue, MusicLayoutAnimationWidget::m_isAnimating, and MusicLayoutAnimationWidget::m_mainWidget.
|
finaloverridevirtual |
Start to anmiation.
Reimplemented from MusicLayoutAnimationWidget.
Definition at line 146 of file musiclayoutanimationwidget.cpp.
References MusicLayoutAnimationWidget::m_animation, MusicLayoutAnimationWidget::m_isAnimating, MusicLayoutAnimationWidget::m_widgetLayout, and MusicLayoutAnimationWidget::start().