summaryrefslogtreecommitdiff
path: root/core/applets/volumeapplet/volumeappletimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/applets/volumeapplet/volumeappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/volumeappletimpl.cpp35
1 files changed, 13 insertions, 22 deletions
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp
index 943e71a..47506cc 100644
--- a/core/applets/volumeapplet/volumeappletimpl.cpp
+++ b/core/applets/volumeapplet/volumeappletimpl.cpp
@@ -31,3 +31,3 @@ VolumeAppletImpl::~VolumeAppletImpl()
{
- delete volume;
+ delete volume;
}
@@ -36,14 +36,5 @@ QWidget *VolumeAppletImpl::applet( QWidget *parent )
{
- if ( !volume )
- volume = new VolumeApplet( parent );
-
- Config cfg("qpe");
- cfg.setGroup("Volume");
- QString foo = cfg.readEntry("Mute","TRUE");
- bool muted;
- if(foo.find("TRUE",0,TRUE) != -1)
- muted = TRUE;
- else muted = FALSE;
- QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << muted; //mute
- return volume;
+ if ( !volume )
+ volume = new VolumeApplet( parent );
+ return volume;
}
@@ -52,3 +43,3 @@ int VolumeAppletImpl::position() const
{
- return 6;
+ return 6;
}
@@ -57,11 +48,11 @@ QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface *
{
- *iface = 0;
- if ( uuid == IID_QUnknown )
- *iface = this;
- else if ( uuid == IID_TaskbarApplet )
- *iface = this;
+ *iface = 0;
+ if ( uuid == IID_QUnknown )
+ *iface = this;
+ else if ( uuid == IID_TaskbarApplet )
+ *iface = this;
- if ( *iface )
- (*iface)->addRef();
- return QS_OK;
+ if ( *iface )
+ (*iface)->addRef();
+ return QS_OK;
}