summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-17 11:04:40 (UTC)
committer llornkcor <llornkcor>2002-06-17 11:04:40 (UTC)
commit2917d7481dc8c1b053e3212a699e64948a90ec4c (patch) (unidiff)
tree159735f0ccf4371f254f9805f93bcb428d017c01
parentb646eee10051aa1065f60113066eb0028d17efc4 (diff)
downloadopie-2917d7481dc8c1b053e3212a699e64948a90ec4c.zip
opie-2917d7481dc8c1b053e3212a699e64948a90ec4c.tar.gz
opie-2917d7481dc8c1b053e3212a699e64948a90ec4c.tar.bz2
remove mute on popup left from experimenting
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/volume.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp
index 19e71c5..d871a35 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -37,25 +37,24 @@
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
50 setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); 49 setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
51 createView(showMic); 50 createView(showMic);
52} 51}
53 52
54void VolumeControl::createView(bool showMic) 53void VolumeControl::createView(bool showMic)
55{ 54{
56 Config cfg("qpe"); 55 Config cfg("qpe");
57 cfg.setGroup("Volume"); 56 cfg.setGroup("Volume");
58//showMic = TRUE; 57//showMic = TRUE;
59 QHBoxLayout *hboxLayout = new QHBoxLayout(this); 58 QHBoxLayout *hboxLayout = new QHBoxLayout(this);
60 hboxLayout->setMargin( 3 ); 59 hboxLayout->setMargin( 3 );
61 hboxLayout->setSpacing( 0); 60 hboxLayout->setSpacing( 0);