The VolumeSlider class is used to display a nice volume bar instead of default slider.
More...
#include <volumeslider.h>
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
- Copyright
- GNU General Public License v3
◆ VolumeSlider()
VolumeSlider::VolumeSlider |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~VolumeSlider()
VolumeSlider::~VolumeSlider |
( |
| ) |
|
|
virtual |
◆ contextMenuEvent()
void VolumeSlider::contextMenuEvent |
( |
QContextMenuEvent * |
e | ) |
|
|
overrideprotectedvirtual |
◆ eventFilter()
bool VolumeSlider::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
e |
|
) |
| |
|
overridevirtual |
Redefined to react to default keys
◆ mousePressEvent()
void VolumeSlider::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ paintEvent()
void VolumeSlider::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
overrideprotectedvirtual |
Redefined for custom painting.
◆ wheelEvent()
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: