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
@@ -33,33 +33,32 @@
33#include <qslider.h> 33#include <qslider.h>
34#include <qlayout.h> 34#include <qlayout.h>
35#include <qframe.h> 35#include <qframe.h>
36#include <qpixmap.h> 36#include <qpixmap.h>
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);
62 61
63 QVBoxLayout *vboxButtons = new QVBoxLayout(this); 62 QVBoxLayout *vboxButtons = new QVBoxLayout(this);
64 upButton = new QPushButton( this ); 63 upButton = new QPushButton( this );
65 upButton->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Expanding ) ); 64 upButton->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Expanding ) );