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 animation base widget. More...
#include <musicfuntionanimationwidget.h>
Public Slots | |
virtual void | switchToSelectedItemStyle (int index) |
void | animationChanged (const QVariant &value) |
void | finished () |
Signals | |
void | buttonClicked (int index) |
Public Member Functions | |
MusicAbstractAnimationWidget (QWidget *parent=nullptr) | |
~MusicAbstractAnimationWidget () | |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) override |
Protected Attributes | |
QPixmap | m_pix |
int | m_curIndex |
int | m_preIndex |
int | m_x |
float | m_perWidth |
float | m_totalWidth |
bool | m_isAnimation |
bool | m_showState |
bool | m_showLine |
QPropertyAnimation * | m_animation |
QWidgetList | m_container |
QButtonGroup * | m_buttonGroup |
The class of the animation base widget.
Definition at line 90 of file musicfuntionanimationwidget.h.
|
explicit |
Object constructor.
Definition at line 63 of file musicfuntionanimationwidget.cpp.
References animationChanged(), finished(), m_animation, m_buttonGroup, QtButtonGroupConnect, switchToSelectedItemStyle(), and TTK_SLOT.
MusicAbstractAnimationWidget::~MusicAbstractAnimationWidget | ( | ) |
Object destructor.
Definition at line 90 of file musicfuntionanimationwidget.cpp.
References m_animation, m_buttonGroup, and m_container.
|
slot |
Animation state changed.
Definition at line 132 of file musicfuntionanimationwidget.cpp.
References m_x.
Referenced by MusicAbstractAnimationWidget().
|
signal |
Switch to selected item style.
Referenced by switchToSelectedItemStyle().
|
slot |
Animation finished.
Definition at line 138 of file musicfuntionanimationwidget.cpp.
References m_isAnimation.
Referenced by MusicAbstractAnimationWidget().
|
overrideprotectedvirtual |
Override the widget event.
Reimplemented in MusicSkinAnimationWidget, MusicOptionAnimationWidget, and MusicFuntionAnimationWidget.
Definition at line 97 of file musicfuntionanimationwidget.cpp.
References m_container, m_curIndex, m_isAnimation, m_perWidth, m_pix, m_showLine, m_showState, m_totalWidth, and m_x.
Referenced by MusicFuntionAnimationWidget::paintEvent(), MusicOptionAnimationWidget::paintEvent(), and MusicSkinAnimationWidget::paintEvent().
|
virtualslot |
Switch to selected item style.
Definition at line 120 of file musicfuntionanimationwidget.cpp.
References buttonClicked(), m_animation, m_curIndex, m_isAnimation, m_perWidth, and m_preIndex.
Referenced by MusicAbstractAnimationWidget(), MusicFuntionAnimationWidget::switchToSelectedItemStyle(), MusicOptionAnimationWidget::switchToSelectedItemStyle(), and MusicSkinAnimationWidget::switchToSelectedItemStyle().
|
protected |
Definition at line 135 of file musicfuntionanimationwidget.h.
Referenced by MusicAbstractAnimationWidget(), switchToSelectedItemStyle(), and ~MusicAbstractAnimationWidget().
|
protected |
Definition at line 137 of file musicfuntionanimationwidget.h.
Referenced by MusicAbstractAnimationWidget(), MusicFuntionAnimationWidget::MusicFuntionAnimationWidget(), MusicOptionAnimationWidget::MusicOptionAnimationWidget(), MusicSkinAnimationWidget::MusicSkinAnimationWidget(), and ~MusicAbstractAnimationWidget().
|
protected |
Definition at line 136 of file musicfuntionanimationwidget.h.
Referenced by MusicOptionAnimationWidget::buttonStyleClear(), MusicOptionAnimationWidget::buttonStyleSwitch(), MusicFuntionAnimationWidget::MusicFuntionAnimationWidget(), MusicOptionAnimationWidget::MusicOptionAnimationWidget(), MusicSkinAnimationWidget::MusicSkinAnimationWidget(), paintEvent(), MusicFuntionAnimationWidget::switchToSelectedItemStyle(), MusicSkinAnimationWidget::switchToSelectedItemStyle(), and ~MusicAbstractAnimationWidget().
|
protected |
Definition at line 131 of file musicfuntionanimationwidget.h.
Referenced by paintEvent(), and switchToSelectedItemStyle().
|
protected |
Definition at line 133 of file musicfuntionanimationwidget.h.
Referenced by finished(), paintEvent(), and switchToSelectedItemStyle().
|
protected |
Definition at line 132 of file musicfuntionanimationwidget.h.
Referenced by paintEvent(), and switchToSelectedItemStyle().
|
protected |
Definition at line 130 of file musicfuntionanimationwidget.h.
Referenced by MusicOptionAnimationWidget::MusicOptionAnimationWidget(), and paintEvent().
|
protected |
Definition at line 131 of file musicfuntionanimationwidget.h.
Referenced by switchToSelectedItemStyle().
|
protected |
Definition at line 133 of file musicfuntionanimationwidget.h.
Referenced by MusicOptionAnimationWidget::MusicOptionAnimationWidget(), and paintEvent().
|
protected |
Definition at line 133 of file musicfuntionanimationwidget.h.
Referenced by paintEvent(), and MusicOptionAnimationWidget::switchToSelectedItemStyle().
|
protected |
Definition at line 132 of file musicfuntionanimationwidget.h.
Referenced by paintEvent(), MusicFuntionAnimationWidget::paintEvent(), MusicOptionAnimationWidget::paintEvent(), and MusicSkinAnimationWidget::paintEvent().
|
protected |
Definition at line 131 of file musicfuntionanimationwidget.h.
Referenced by animationChanged(), and paintEvent().