Diffstat (limited to 'noncore/multimedia/opieplayer2/volumecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/volumecontrol.cpp | 7 |
1 files changed, 5 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 | |||
@@ -26,13 +26,14 @@ void VolumeControl::setVolume( int volumePerc ) { | |||
26 | if ( volumePerc < 0 ) { | 26 | if ( volumePerc < 0 ) { |
27 | volumePerc = 0; | 27 | volumePerc = 0; |
28 | } | 28 | } |
29 | 29 | ||
30 | m_volumePerc = volumePerc; | 30 | m_volumePerc = volumePerc; |
31 | cfg.writeEntry("VolumePercent", volumePerc ); | 31 | cfg.writeEntry("VolumePercent", volumePerc ); |
32 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; | 32 | // QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; |
33 | QCopEnvelope( "QPE/System", "setVolume(int,int)" ) << 0, volumePerc; | ||
33 | } | 34 | } |
34 | 35 | ||
35 | 36 | ||
36 | void VolumeControl::incVol( int ammount ) { | 37 | void VolumeControl::incVol( int ammount ) { |
37 | int oldVol = getVolume(); | 38 | int oldVol = getVolume(); |
38 | setVolume( oldVol + ammount); | 39 | setVolume( oldVol + ammount); |
@@ -49,11 +50,13 @@ VolumeControl::VolumeControl( ) { | |||
49 | } | 50 | } |
50 | 51 | ||
51 | VolumeControl::~VolumeControl() { | 52 | VolumeControl::~VolumeControl() { |
52 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; | 53 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; |
53 | } | 54 | } |
54 | 55 | ||
55 | 56 | void VolumeControl::setMute(bool on) { | |
57 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << on; | ||
58 | } | ||
56 | 59 | ||
57 | 60 | ||
58 | 61 | ||
59 | 62 | ||