Miam-Player  0.8.0
A nice music player
VolumeSlider Class Reference

The VolumeSlider class is used to display a nice volume bar instead of default slider. More...

#include <volumeslider.h>

Inheritance diagram for VolumeSlider:

Public Member Functions

 VolumeSlider (QWidget *parent=nullptr)
 
virtual bool eventFilter (QObject *obj, QEvent *e) override
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *) override
 
virtual void wheelEvent (QWheelEvent *event) override
 

Detailed Description

The VolumeSlider class is used to display a nice volume bar instead of default slider.

This class shows a "classic" volume bar. It's implemented with ten large vertical rectangles increasing in height when volume gets louder. It supports the theme chosen by one and displays a gradient from light to dark, where the darkest color is the highlight color in the options.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

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

Member Function Documentation

bool VolumeSlider::eventFilter ( QObject *  obj,
QEvent *  e 
)
overridevirtual

Redefined to react to default keys

void VolumeSlider::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Redefined.

void VolumeSlider::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Redefined for custom painting.

void VolumeSlider::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

Redefined to allow one to change volume without having the focus on this widget.


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