Home · All Classes · Grouped Classes · Annotated · Functions

QMediaVolumeLabel Class Reference

The QMediaVolumeLabel class displays icons for the various levels of volume. More...

    #include <QMediaVolumeLabel>

Inherits QWidget.

Public Types

Public Functions

Additional Inherited Members

Detailed Description

The QMediaVolumeLabel class displays icons for the various levels of volume.

The QMediaVolumeLabel class is useful for displaying standard icons for conveying volume information.

The display type can be set either by the constructor or by the setVolumeType() method.

    QMediaVolumeLabel *label = new QMediaVolumeLabel;
    label->setVolumeType( QMediaVolumeLabel::MuteVolume );


Member Type Documentation

enum QMediaVolumeLabel::Type

This enum type specifies the volume level icon.

QMediaVolumeLabel::MinimumVolume0Displays the icon representing minimum volume.
QMediaVolumeLabel::MaximumVolume1Displays the icon representing maximum volume.
QMediaVolumeLabel::MuteVolume2Displays the icon representing mute volume.

Member Function Documentation

QMediaVolumeLabel::QMediaVolumeLabel ( Type type = MinimumVolume, QWidget * parent = 0 )

Constructs a volume label with a default icon of type.

The parent argument is passed to the QWidget constructor.

QMediaVolumeLabel::~QMediaVolumeLabel ()

Destroys the label.

void QMediaVolumeLabel::setVolumeType ( Type type )

Displays the icon for type.

See also volumeType().

Type QMediaVolumeLabel::volumeType () const

Returns the current display type.

See also setVolumeType().

Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3