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

The class of the slider smooth moving scroll area widget. More...

#include <musicsmoothmovingwidget.h>

+ Inheritance diagram for MusicSmoothMovingScrollArea:

Public Member Functions

 MusicSmoothMovingScrollArea (QWidget *parent=nullptr)
 
void setMovedScrollBar (QScrollBar *bar=nullptr)
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *event) override
 

Private Attributes

MusicSmoothMovingInterface m_interface
 

Detailed Description

The class of the slider smooth moving scroll area widget.

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

Definition at line 118 of file musicsmoothmovingwidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 102 of file musicsmoothmovingwidget.cpp.

References TTK::UI::ScrollBarStyle03.

Member Function Documentation

void MusicSmoothMovingScrollArea::setMovedScrollBar ( QScrollBar *  bar = nullptr)

Set current moved scroll bar.

Definition at line 110 of file musicsmoothmovingwidget.cpp.

References m_interface, and MusicSmoothMovingInterface::setScrollBar().

void MusicSmoothMovingScrollArea::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

Override the widget event.

Definition at line 115 of file musicsmoothmovingwidget.cpp.

References m_interface, QtWheelDelta, and MusicSmoothMovingInterface::updateValue().

Member Data Documentation

MusicSmoothMovingInterface MusicSmoothMovingScrollArea::m_interface
private

Definition at line 140 of file musicsmoothmovingwidget.h.

Referenced by setMovedScrollBar(), and wheelEvent().


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