summaryrefslogtreecommitdiff
path: root/core/applets/volumeapplet/volume.cpp
authorllornkcor <llornkcor>2002-06-16 17:22:40 (UTC)
committer llornkcor <llornkcor>2002-06-16 17:22:40 (UTC)
commit0a92e4f6ac0f3f288dbd0b83489366eb0760975a (patch) (unidiff)
tree6487150faec5f13472606dfcd98fd58bcdb151a8 /core/applets/volumeapplet/volume.cpp
parentf63c4f952daeeda9787b8b700a9d50f20cdff88c (diff)
downloadopie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.zip
opie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.tar.gz
opie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.tar.bz2
default is now moot.. err rather mute d
Diffstat (limited to 'core/applets/volumeapplet/volume.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/volume.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp
index e8921f0..069f8ab 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -37,24 +37,25 @@
37#include <qlabel.h> 37#include <qlabel.h>
38 38
39#include <qpushbutton.h> 39#include <qpushbutton.h>
40#include <qtimer.h> 40#include <qtimer.h>
41 41
42#define RATE_TIMER_INTERVAL 100 42#define RATE_TIMER_INTERVAL 100
43// Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time 43// Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time
44// results in "hanging" buttons on the iPAQ due to quite high CPU consumption. 44// results in "hanging" buttons on the iPAQ due to quite high CPU consumption.
45 45
46VolumeControl::VolumeControl( bool showMic, QWidget *parent, const char *name ) 46VolumeControl::VolumeControl( bool showMic, QWidget *parent, const char *name )
47 : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup ) 47 : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup )
48{ 48{
49 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << TRUE; //mute
49 setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); 50 setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
50 createView(showMic); 51 createView(showMic);
51} 52}
52 53
53void VolumeControl::createView(bool showMic) 54void VolumeControl::createView(bool showMic)
54{ 55{
55 Config cfg("qpe"); 56 Config cfg("qpe");
56 cfg.setGroup("Volume"); 57 cfg.setGroup("Volume");
57//showMic = TRUE; 58//showMic = TRUE;
58 QHBoxLayout *hboxLayout = new QHBoxLayout(this); 59 QHBoxLayout *hboxLayout = new QHBoxLayout(this);
59 hboxLayout->setMargin( 3 ); 60 hboxLayout->setMargin( 3 );
60 hboxLayout->setSpacing( 0); 61 hboxLayout->setSpacing( 0);