Phonon  4.7.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Slots | Public Member Functions | Protected Attributes | Properties | List of all members
Phonon::VolumeSlider Class Reference

Widget providing a slider to control the volume of an AudioOutput. More...

#include <phonon/VolumeSlider>

Inheritance diagram for Phonon::VolumeSlider:

Public Slots

void setMaximumVolume (qreal)
 
void setOrientation (Qt::Orientation)
 
void setMuteVisible (bool)
 
void setIconSize (const QSize &size)
 
void setAudioOutput (Phonon::AudioOutput *)
 

Public Member Functions

 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
 
AudioOutputaudioOutput () const
 

Protected Attributes

VolumeSliderPrivate *const k_ptr
 

Properties

qreal maximumVolume
 
Qt::Orientation orientation
 
bool tracking
 
int pageStep
 
int singleStep
 
bool muteVisible
 
QSize iconSize
 the icon size used for the mute button/icon. More...
 

Detailed Description

Widget providing a slider to control the volume of an AudioOutput.

Author
Matthias Kretz kretz.nosp@m.@kde.nosp@m..org

Constructor & Destructor Documentation

Phonon::VolumeSlider::VolumeSlider ( QWidget *  parent = 0)
explicit

Constructs a new volume slider with a parent.

Member Function Documentation

void Phonon::VolumeSlider::setAudioOutput ( Phonon::AudioOutput output)
slot

Sets the audio output object to be controlled by this slider.

Property Documentation

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: