-rw-r--r-- | noncore/multimedia/opieplayer2/volumecontrol.cpp | 7 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/volumecontrol.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/volumecontrol.cpp b/noncore/multimedia/opieplayer2/volumecontrol.cpp index b8ec0df..219f63e 100644 --- a/noncore/multimedia/opieplayer2/volumecontrol.cpp +++ b/noncore/multimedia/opieplayer2/volumecontrol.cpp @@ -31,3 +31,4 @@ void VolumeControl::setVolume( int volumePerc ) { cfg.writeEntry("VolumePercent", volumePerc ); - QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; +// QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; + QCopEnvelope( "QPE/System", "setVolume(int,int)" ) << 0, volumePerc; } @@ -54,3 +55,5 @@ VolumeControl::~VolumeControl() { - +void VolumeControl::setMute(bool on) { + QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << on; +} diff --git a/noncore/multimedia/opieplayer2/volumecontrol.h b/noncore/multimedia/opieplayer2/volumecontrol.h index 37be398..d0d34a2 100644 --- a/noncore/multimedia/opieplayer2/volumecontrol.h +++ b/noncore/multimedia/opieplayer2/volumecontrol.h @@ -37,2 +37,3 @@ public slots: + void setMute(bool); |