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 | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MusicSmoothMovingTableWidget Class Reference

The class of the slider smooth moving table widget. More...

#include <musicsmoothmovingwidget.h>

+ Inheritance diagram for MusicSmoothMovingTableWidget:

Public Slots

void timeToAnimation ()
 
void valueChanged (int value)
 
- Public Slots inherited from TTKAbstractTableWidget
virtual void itemCellEntered (int row, int column)
 
virtual void itemCellClicked (int row, int column)
 
virtual void removeItems ()
 

Public Member Functions

 MusicSmoothMovingTableWidget (QWidget *parent=nullptr)
 
 ~MusicSmoothMovingTableWidget ()
 
void setMovedScrollBar (QScrollBar *bar=nullptr)
 
- Public Member Functions inherited from MusicAbstractTableWidget
 MusicAbstractTableWidget (QWidget *parent=nullptr)
 
- Public Member Functions inherited from TTKAbstractTableWidget
 TTKAbstractTableWidget (QWidget *parent=nullptr)
 
 ~TTKAbstractTableWidget ()
 
TTKIntList selectedIndexList () const
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *event) override
 
- Protected Member Functions inherited from TTKAbstractTableWidget
virtual void leaveEvent (QEvent *event) override
 
void setRowColor (int row, const QColor &color) const
 
bool isValid () const
 

Protected Attributes

bool m_initialized
 
int m_previousValue
 
int m_deltaValue
 
QScrollBar * m_scrollBar
 
QTimer * m_animationTimer
 
QPropertyAnimation * m_slowAnimation
 
- Protected Attributes inherited from TTKAbstractTableWidget
int m_previousColorRow
 
int m_previousClickRow
 
QColor m_backgroundColor
 

Detailed Description

The class of the slider smooth moving table widget.

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

Definition at line 30 of file musicsmoothmovingwidget.h.

Constructor & Destructor Documentation

MusicSmoothMovingTableWidget::MusicSmoothMovingTableWidget ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 8 of file musicsmoothmovingwidget.cpp.

References m_animationTimer, TTK::UI::ScrollBarStyle03, timeToAnimation(), and TTK_DN_MS.

MusicSmoothMovingTableWidget::~MusicSmoothMovingTableWidget ( )

Object destructor.

Definition at line 23 of file musicsmoothmovingwidget.cpp.

References m_animationTimer, and m_slowAnimation.

Member Function Documentation

void MusicSmoothMovingTableWidget::setMovedScrollBar ( QScrollBar *  bar = nullptr)
void MusicSmoothMovingTableWidget::timeToAnimation ( )
slot

Time out to start animation.

Definition at line 40 of file musicsmoothmovingwidget.cpp.

References m_animationTimer, m_deltaValue, m_initialized, m_previousValue, m_scrollBar, m_slowAnimation, and TTK_ITEM_SIZE_M.

Referenced by MusicSmoothMovingTableWidget().

void MusicSmoothMovingTableWidget::valueChanged ( int  value)
slot

Current scroll bar value changed.

Definition at line 57 of file musicsmoothmovingwidget.cpp.

References m_previousValue.

Referenced by setMovedScrollBar().

void MusicSmoothMovingTableWidget::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

Member Data Documentation

QTimer* MusicSmoothMovingTableWidget::m_animationTimer
protected
int MusicSmoothMovingTableWidget::m_deltaValue
protected

Definition at line 66 of file musicsmoothmovingwidget.h.

Referenced by timeToAnimation(), and wheelEvent().

bool MusicSmoothMovingTableWidget::m_initialized
protected

Definition at line 65 of file musicsmoothmovingwidget.h.

Referenced by timeToAnimation(), and wheelEvent().

int MusicSmoothMovingTableWidget::m_previousValue
protected

Definition at line 66 of file musicsmoothmovingwidget.h.

Referenced by timeToAnimation(), valueChanged(), and wheelEvent().

QScrollBar* MusicSmoothMovingTableWidget::m_scrollBar
protected
QPropertyAnimation* MusicSmoothMovingTableWidget::m_slowAnimation
protected

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