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

The class of the songs list function widget. More...

#include <musicsongslistfunctionwidget.h>

+ Inheritance diagram for MusicSongsListFunctionWidget:

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
 

Detailed Description

The class of the songs list function widget.

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

Definition at line 31 of file musicsongslistfunctionwidget.h.

Constructor & Destructor Documentation

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

Object destructor.

Definition at line 48 of file musicsongslistfunctionwidget.cpp.

References m_animation, and m_mainWidget.

Member Function Documentation

void MusicSongsListFunctionWidget::active ( )

Set current animation active.

Definition at line 54 of file musicsongslistfunctionwidget.cpp.

References m_timer.

Referenced by MusicSongsContainerWidget::showFloatWidget().

void MusicSongsListFunctionWidget::animationFinished ( )
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().

void MusicSongsListFunctionWidget::deleteObject ( )
signal

Delete self object.

Referenced by animationFinished().

void MusicSongsListFunctionWidget::enterEvent ( QtEnterEvent event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 89 of file musicsongslistfunctionwidget.cpp.

References m_currentAnimationValue, m_mainWidget, and start().

void MusicSongsListFunctionWidget::leaveEvent ( QEvent *  event)
finaloverrideprivatevirtual

Definition at line 99 of file musicsongslistfunctionwidget.cpp.

References m_mainWidget, and start().

void MusicSongsListFunctionWidget::leaveTimeout ( )
privateslot

Leave Time out.

Definition at line 74 of file musicsongslistfunctionwidget.cpp.

References m_currentAnimationValue, and start().

Referenced by MusicSongsListFunctionWidget().

void MusicSongsListFunctionWidget::start ( bool  play,
int  end 
)
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().

Member Data Documentation

QPropertyAnimation* MusicSongsListFunctionWidget::m_animation
private
float MusicSongsListFunctionWidget::m_currentAnimationValue
private

Definition at line 80 of file musicsongslistfunctionwidget.h.

Referenced by animationFinished(), enterEvent(), leaveTimeout(), and start().

QWidget* MusicSongsListFunctionWidget::m_mainWidget
private
QTimer MusicSongsListFunctionWidget::m_timer
private

Definition at line 77 of file musicsongslistfunctionwidget.h.

Referenced by active(), MusicSongsListFunctionWidget(), and start().


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