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 barrage animation. More...
#include <musicbarragewidget.h>
Public Member Functions | |
MusicBarrageAnimation (QObject *parent=nullptr) | |
MusicBarrageAnimation (QObject *target, const QByteArray &name, QObject *parent=nullptr) | |
void | setSize (const QSize &size) |
Private Slots | |
void | animationFinished () |
Private Member Functions | |
void | initialize () |
Private Attributes | |
QSize | m_parentSize |
The class of the barrage animation.
Definition at line 30 of file musicbarragewidget.h.
|
explicit |
MusicBarrageAnimation::MusicBarrageAnimation | ( | QObject * | target, |
const QByteArray & | name, | ||
QObject * | parent = nullptr |
||
) |
Definition at line 11 of file musicbarragewidget.cpp.
References initialize().
|
privateslot |
Current animation is finished.
Definition at line 17 of file musicbarragewidget.cpp.
References m_parentSize, TTK::random(), setSize(), and TTK_DN_S2MS.
Referenced by initialize().
|
private |
Init parameters.
Definition at line 32 of file musicbarragewidget.cpp.
References animationFinished(), TTK::random(), and TTK_DN_S2MS.
Referenced by MusicBarrageAnimation().
void MusicBarrageAnimation::setSize | ( | const QSize & | size | ) |
Set animation region size.
Definition at line 24 of file musicbarragewidget.cpp.
References m_parentSize, and TTK::random().
Referenced by animationFinished(), and MusicBarrageWidget::createAnimation().
|
private |
Definition at line 58 of file musicbarragewidget.h.
Referenced by animationFinished(), and setSize().