TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MusicAbstractAnimationWidget Class Reference

The class of the animation base widget. More...

#include <musicfuntionanimationwidget.h>

+ Inheritance diagram for MusicAbstractAnimationWidget:

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
 

Detailed Description

The class of the animation base widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 90 of file musicfuntionanimationwidget.h.

Constructor & Destructor Documentation

MusicAbstractAnimationWidget::MusicAbstractAnimationWidget ( QWidget *  parent = nullptr)
explicit
MusicAbstractAnimationWidget::~MusicAbstractAnimationWidget ( )

Object destructor.

Definition at line 90 of file musicfuntionanimationwidget.cpp.

References m_animation, m_buttonGroup, and m_container.

Member Function Documentation

void MusicAbstractAnimationWidget::animationChanged ( const QVariant &  value)
slot

Animation state changed.

Definition at line 132 of file musicfuntionanimationwidget.cpp.

References m_x.

Referenced by MusicAbstractAnimationWidget().

void MusicAbstractAnimationWidget::buttonClicked ( int  index)
signal

Switch to selected item style.

Referenced by switchToSelectedItemStyle().

void MusicAbstractAnimationWidget::finished ( )
slot

Animation finished.

Definition at line 138 of file musicfuntionanimationwidget.cpp.

References m_isAnimation.

Referenced by MusicAbstractAnimationWidget().

void MusicAbstractAnimationWidget::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual
void MusicAbstractAnimationWidget::switchToSelectedItemStyle ( int  index)
virtualslot

Member Data Documentation

QPropertyAnimation* MusicAbstractAnimationWidget::m_animation
protected
QButtonGroup* MusicAbstractAnimationWidget::m_buttonGroup
protected
QWidgetList MusicAbstractAnimationWidget::m_container
protected
int MusicAbstractAnimationWidget::m_curIndex
protected

Definition at line 131 of file musicfuntionanimationwidget.h.

Referenced by paintEvent(), and switchToSelectedItemStyle().

bool MusicAbstractAnimationWidget::m_isAnimation
protected

Definition at line 133 of file musicfuntionanimationwidget.h.

Referenced by finished(), paintEvent(), and switchToSelectedItemStyle().

float MusicAbstractAnimationWidget::m_perWidth
protected

Definition at line 132 of file musicfuntionanimationwidget.h.

Referenced by paintEvent(), and switchToSelectedItemStyle().

QPixmap MusicAbstractAnimationWidget::m_pix
protected
int MusicAbstractAnimationWidget::m_preIndex
protected

Definition at line 131 of file musicfuntionanimationwidget.h.

Referenced by switchToSelectedItemStyle().

bool MusicAbstractAnimationWidget::m_showLine
protected
bool MusicAbstractAnimationWidget::m_showState
protected
float MusicAbstractAnimationWidget::m_totalWidth
protected
int MusicAbstractAnimationWidget::m_x
protected

Definition at line 131 of file musicfuntionanimationwidget.h.

Referenced by animationChanged(), and paintEvent().


The documentation for this class was generated from the following files: