diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbwidgets/popups/hbvolumesliderpopup.cpp --- a/src/hbwidgets/popups/hbvolumesliderpopup.cpp Mon Oct 04 17:49:30 2010 +0300 +++ b/src/hbwidgets/popups/hbvolumesliderpopup.cpp Mon Oct 18 18:23:13 2010 +0300 @@ -230,6 +230,37 @@ } + +/*! + @proto + + Mutes or unmutes the volume output. + \sa isMuted() +*/ + + +void HbVolumeSliderPopup::setMuted( bool mute ) +{ + Q_D( const HbVolumeSliderPopup ); + if( d->slider ) { + HbVolumeSlider* volumeslider = static_cast( d->slider ); + volumeslider->setIconChecked( mute ) ; + } +} + +/*! + @proto + Returns whether volume is muted or unmuted. + + \sa setMute() +*/ + +bool HbVolumeSliderPopup::isMuted( ) const +{ + return( value( ) == minimum( ) ? true: false ); +} + + /*! \reimp Reimplemented from QGraphicsItem::keyPressEvent().