Volume slider widget. More...
#include <VLCQtWidgets/WidgetVolumeSlider.h>
Public Slots | |
bool | mute () const |
Mute status. More... | |
void | setMute (bool enabled) |
Toggle mute. More... | |
void | setVolume (int volume) |
Set volume for current media. More... | |
int | volume () const |
Get volume for current media. More... | |
void | volumeControl (bool up) |
Decreases or increases volume for 1, depending on the parameter. More... | |
void | volumeDown () |
Decreases volume for 1. More... | |
void | volumeUp () |
Increases volume for 1. More... | |
Signals | |
void | newVolume (int volume) |
Signal for new volume. More... | |
Public Member Functions | |
VlcWidgetVolumeSlider (VlcMediaPlayer *player, QWidget *parent=0) | |
VlcWidgetVolumeSlider constructor. More... | |
VlcWidgetVolumeSlider (QWidget *parent=0) | |
VlcWidgetVolumeSlider constructor. More... | |
~VlcWidgetVolumeSlider () | |
VlcWidgetVolumeSlider destructor. | |
void | setMediaPlayer (VlcMediaPlayer *player) |
Set media player if initialised without it. More... | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
Mouse press event override. More... | |
void | mouseReleaseEvent (QMouseEvent *event) |
Mouse release event override. More... | |
This is one of VLC-Qt GUI classes. It provides graphical volume control and also visual display of current volume.
|
explicit |
player | media player |
parent | volume slider's parent GUI widget |
|
explicit |
parent | volume slider's parent GUI widget |
|
protected |
event | mouse event |
|
protected |
event | mouse event |
|
slot |
|
signal |
volume | new volume |
void VlcWidgetVolumeSlider::setMediaPlayer | ( | VlcMediaPlayer * | player | ) |
player | media player |
|
slot |
enabled | new mutte status |
|
slot |
volume | number from 0 to 200 |
|
slot |
|
slot |
Limits from 0 to 200 apply to this function.
up | if true increases the volume |
|
inlineslot |
This function is provided for convenience.
|
inlineslot |
This function is provided for convenience.