summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/volumecontrol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/volumecontrol.cpp b/noncore/multimedia/opieplayer2/volumecontrol.cpp
index 219f63e..a795f3b 100644
--- a/noncore/multimedia/opieplayer2/volumecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/volumecontrol.cpp
@@ -20,26 +20,26 @@ void VolumeControl::setVolume( int volumePerc ) {
20 Config cfg("qpe"); 20 Config cfg("qpe");
21 cfg.setGroup("Volume"); 21 cfg.setGroup("Volume");
22 22
23 if ( volumePerc > 100 ) { 23 if ( volumePerc > 100 ) {
24 volumePerc = 100; 24 volumePerc = 100;
25 } 25 }
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// QCopEnvelope( "QPE/System", "setVolume(int,int)" ) << 0, volumePerc;
34} 34}
35 35
36 36
37void VolumeControl::incVol( int ammount ) { 37void VolumeControl::incVol( int ammount ) {
38 int oldVol = getVolume(); 38 int oldVol = getVolume();
39 setVolume( oldVol + ammount); 39 setVolume( oldVol + ammount);
40} 40}
41 41
42void VolumeControl::decVol( int ammount ) { 42void VolumeControl::decVol( int ammount ) {
43 int oldVol = getVolume(); 43 int oldVol = getVolume();
44 setVolume( oldVol - ammount); 44 setVolume( oldVol - ammount);
45} 45}