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

The class of the time slider widget. More...

#include <musictimesliderwidget.h>

+ Inheritance diagram for MusicTimeSliderWidget:

Public Slots

void sliderMovedAt (int pos) const
 
void setSliderStyleByType (int type)
 

Public Member Functions

 MusicTimeSliderWidget (QWidget *parent=nullptr)
 
 ~MusicTimeSliderWidget ()
 
void setInputModule (QObject *object) const
 
void setCurrentPlayState (bool state)
 
void setValue (qint64 value) const
 
void setRange (int min, int max)
 

Private Member Functions

virtual void resizeEvent (QResizeEvent *event) overridefinal
 

Private Attributes

MusicGifLabelWidgetm_label
 
MusicMovingLabelSliderm_slider
 

Detailed Description

The class of the time slider widget.

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

Definition at line 31 of file musictimesliderwidget.h.

Constructor & Destructor Documentation

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

Object destructor.

Definition at line 23 of file musictimesliderwidget.cpp.

References m_label, and m_slider.

Member Function Documentation

void MusicTimeSliderWidget::resizeEvent ( QResizeEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 110 of file musictimesliderwidget.cpp.

References m_label, m_slider, and sliderMovedAt().

void MusicTimeSliderWidget::setCurrentPlayState ( bool  state)

Set current play state.

Definition at line 35 of file musictimesliderwidget.cpp.

References m_label, MusicGifLabelWidget::start(), and MusicGifLabelWidget::stop().

void MusicTimeSliderWidget::setInputModule ( QObject *  object) const

Set input connection.

Definition at line 29 of file musictimesliderwidget.cpp.

References m_slider, and sliderMovedAt().

void MusicTimeSliderWidget::setRange ( int  min,
int  max 
)

Set current play range from min and max.

Definition at line 59 of file musictimesliderwidget.cpp.

References m_slider.

void MusicTimeSliderWidget::setSliderStyleByType ( int  type)
slot

Set slider style diff by diff enhanced effect.

Definition at line 74 of file musictimesliderwidget.cpp.

References m_slider, and TTK::UI::SliderStyle07.

void MusicTimeSliderWidget::setValue ( qint64  value) const

Set current play index value.

Definition at line 50 of file musictimesliderwidget.cpp.

References MusicMovingClickedSlider::isMoving(), m_slider, MusicMovingClickedSlider::setValue(), and sliderMovedAt().

void MusicTimeSliderWidget::sliderMovedAt ( int  pos) const
slot

Current slider move at pos.

Definition at line 64 of file musictimesliderwidget.cpp.

References m_label, m_slider, and TTK::max().

Referenced by resizeEvent(), setInputModule(), and setValue().

Member Data Documentation

MusicGifLabelWidget* MusicTimeSliderWidget::m_label
private
MusicMovingLabelSlider* MusicTimeSliderWidget::m_slider
private

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