Logo Search packages:      
Sourcecode: qt4-x11 version File versions

Phonon::VolumeSlider::VolumeSlider ( QWidget parent = 0  )  [explicit]

Constructs a new volume slider with a parent.

Definition at line 33 of file volumeslider.cpp.

References QObject::connect(), and QWidget::setFocusProxy().

    : QWidget(parent),
    k_ptr(new VolumeSliderPrivate(this))
{
    K_D(VolumeSlider);
#ifndef QT_NO_TOOLTIP
    setToolTip(tr("Volume: %1%").arg(100));
#endif
    setWhatsThis(tr("Use this slider to adjust the volume. The leftmost position is 0%, the rightmost is %1%").arg(100));

    connect(&d->slider, SIGNAL(valueChanged(int)), SLOT(_k_sliderChanged(int)));
    connect(&d->muteButton, SIGNAL(clicked()), SLOT(_k_buttonClicked()));

    setFocusProxy(&d->slider);
}


Generated by  Doxygen 1.6.0   Back to index