Widget providing a slider to control the volume of an AudioOutput.
More...
#include <phonon/VolumeSlider>
|
void | setMaximumVolume (qreal) |
|
void | setOrientation (Qt::Orientation) |
|
void | setMuteVisible (bool) |
|
void | setIconSize (const QSize &size) |
|
void | setAudioOutput (Phonon::AudioOutput *) |
|
|
| VolumeSlider (QWidget *parent=0) |
|
| VolumeSlider (AudioOutput *, QWidget *parent=0) |
|
bool | hasTracking () const |
|
void | setTracking (bool tracking) |
|
int | pageStep () const |
|
void | setPageStep (int milliseconds) |
|
int | singleStep () const |
|
void | setSingleStep (int milliseconds) |
|
bool | isMuteVisible () const |
|
QSize | iconSize () const |
|
qreal | maximumVolume () const |
|
Qt::Orientation | orientation () const |
|
AudioOutput * | audioOutput () const |
|
|
VolumeSliderPrivate *const | k_ptr |
|
Widget providing a slider to control the volume of an AudioOutput.
- Author
- Matthias Kretz kretz.nosp@m.@kde.nosp@m..org
Phonon::VolumeSlider::VolumeSlider |
( |
QWidget * |
parent = 0 ) | |
|
|
explicit |
Constructs a new volume slider with a parent
.
Sets the audio output object to be controlled by this slider.
QSize Phonon::VolumeSlider::iconSize |
|
readwrite |
the icon size used for the mute button/icon.
The default size is defined by the GUI style.
qreal Phonon::VolumeSlider::maximumVolume |
|
readwrite |
This property holds the maximum volume that can be set with this slider.
By default the maximum value is 1.0 (100%).
bool Phonon::VolumeSlider::muteVisible |
|
readwrite |
This property holds whether the mute button/icon next to the slider is visible.
By default the mute button/icon is visible.
Qt::Orientation Phonon::VolumeSlider::orientation |
|
readwrite |
This property holds the orientation of the slider.
The orientation must be Qt::Vertical (the default) or Qt::Horizontal.
int Phonon::VolumeSlider::pageStep |
|
readwrite |
This property holds the page step.
The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.
Defaults to 5 (5% of the voltage).
int Phonon::VolumeSlider::singleStep |
|
readwrite |
This property holds the single step.
The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.
Defaults to 1 (1% of the voltage).
bool Phonon::VolumeSlider::tracking |
|
readwrite |
This property holds whether slider tracking is enabled.
If tracking is enabled (the default), the volume changes while the slider is being dragged. If tracking is disabled, the volume changes only when the user releases the slider.
The documentation for this class was generated from the following files:
- /home/me/src/git/p/phonon/phonon/volumeslider.h
- /home/me/src/git/p/phonon/phonon/volumeslider.cpp