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 Member Functions | Private Member Functions | Private Attributes | List of all members
MusicMovingLabelSlider Class Reference

The class of the slider that can show such as tooltip. More...

#include <musicmovinglabelslider.h>

+ Inheritance diagram for MusicMovingLabelSlider:

Public Member Functions

 MusicMovingLabelSlider (QWidget *parent=nullptr)
 
 MusicMovingLabelSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 
 ~MusicMovingLabelSlider ()
 
- Public Member Functions inherited from MusicMovingClickedSlider
 MusicMovingClickedSlider (QWidget *parent=nullptr)
 
 MusicMovingClickedSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 
bool isMoving () const
 
void setMoving (bool m)
 
- Public Member Functions inherited from TTKClickedSlider
 TTKClickedSlider (QWidget *parent=nullptr)
 
 TTKClickedSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 

Private Member Functions

virtual void mousePressEvent (QMouseEvent *event) overridefinal
 
virtual void mouseMoveEvent (QMouseEvent *event) overridefinal
 
virtual void enterEvent (QtEnterEvent *event) overridefinal
 
virtual void leaveEvent (QEvent *event) overridefinal
 
QPoint limitLableGeometry (int x, int y, int z)
 

Private Attributes

QLabel * m_textLabel
 

Additional Inherited Members

- Public Slots inherited from MusicMovingClickedSlider
void setValue (int value)
 
- Signals inherited from MusicMovingClickedSlider
void sliderReleasedAt (int pos)
 
- Signals inherited from TTKClickedSlider
void clicked ()
 
- Protected Member Functions inherited from MusicMovingClickedSlider
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
- Protected Member Functions inherited from TTKClickedSlider
virtual bool event (QEvent *event) overridefinal
 
- Protected Attributes inherited from MusicMovingClickedSlider
bool m_isMoving
 
- Protected Attributes inherited from TTKClickedSlider
int m_value
 
bool m_mousePress
 

Detailed Description

The class of the slider that can show such as tooltip.

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

Definition at line 29 of file musicmovinglabelslider.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 4 of file musicmovinglabelslider.cpp.

MusicMovingLabelSlider::MusicMovingLabelSlider ( Qt::Orientation  orientation,
QWidget *  parent = nullptr 
)
explicit

Definition at line 10 of file musicmovinglabelslider.cpp.

References TTK::UI::LabelStyle01, and m_textLabel.

MusicMovingLabelSlider::~MusicMovingLabelSlider ( )

Object destructor.

Definition at line 21 of file musicmovinglabelslider.cpp.

References m_textLabel.

Member Function Documentation

void MusicMovingLabelSlider::enterEvent ( QtEnterEvent event)
finaloverrideprivatevirtual

Definition at line 57 of file musicmovinglabelslider.cpp.

References m_textLabel.

void MusicMovingLabelSlider::leaveEvent ( QEvent *  event)
finaloverrideprivatevirtual

Definition at line 65 of file musicmovinglabelslider.cpp.

References m_textLabel.

QPoint MusicMovingLabelSlider::limitLableGeometry ( int  x,
int  y,
int  z 
)
private

Set the tool tip gemetry.

Definition at line 71 of file musicmovinglabelslider.cpp.

Referenced by mouseMoveEvent().

void MusicMovingLabelSlider::mouseMoveEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual
void MusicMovingLabelSlider::mousePressEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Reimplemented from MusicMovingClickedSlider.

Definition at line 26 of file musicmovinglabelslider.cpp.

References m_textLabel, and MusicMovingClickedSlider::mousePressEvent().

Member Data Documentation

QLabel* MusicMovingLabelSlider::m_textLabel
private

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