Volume slider widget. More...
#include <vlc-qt/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) |
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) |
void | mouseReleaseEvent (QMouseEvent *event) |
This is one of VLC-Qt GUI classes. It provides graphical volume control and also visual display of current volume.
|
explicit |
player | media player (VlcMediaPlayer *) |
parent | volume slider's parent GUI widget (QWidget) |
|
explicit |
parent | volume slider's parent GUI widget (QWidget) |
|
slot |
|
signal |
int | new volume (int) |
void VlcWidgetVolumeSlider::setMediaPlayer | ( | VlcMediaPlayer * | player | ) |
player | media player (VlcMediaPlayer *) |
|
slot |
enabled | new mutte status (bool) |
|
slot |
volume | number from 0 to 200 (int) |
|
slot |
|
slot |
Limits from 0 to 200 apply to this function.
up | if true increases the volume (bool) |
|
inlineslot |
This function is provided for convenience.
|
inlineslot |
This function is provided for convenience.