Diffstat (limited to 'core/applets/volumeapplet/volumeappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index 47506cc..80b3e74 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -30,36 +30,38 @@ VolumeAppletImpl::VolumeAppletImpl() | |||
30 | VolumeAppletImpl::~VolumeAppletImpl() | 30 | VolumeAppletImpl::~VolumeAppletImpl() |
31 | { | 31 | { |
32 | delete volume; | 32 | delete volume; |
33 | } | 33 | } |
34 | 34 | ||
35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) | 35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) |
36 | { | 36 | { |
37 | if ( !volume ) | 37 | if ( !volume ) |
38 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
39 | return volume; | 39 | return volume; |
40 | } | 40 | } |
41 | 41 | ||
42 | int VolumeAppletImpl::position() const | 42 | int VolumeAppletImpl::position() const |
43 | { | 43 | { |
44 | return 6; | 44 | return 6; |
45 | } | 45 | } |
46 | 46 | ||
47 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 47 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
48 | { | 48 | { |
49 | *iface = 0; | 49 | *iface = 0; |
50 | if ( uuid == IID_QUnknown ) | 50 | if ( uuid == IID_QUnknown ) |
51 | *iface = this; | 51 | *iface = this; |
52 | else if ( uuid == IID_TaskbarApplet ) | 52 | else if ( uuid == IID_TaskbarApplet ) |
53 | *iface = this; | 53 | *iface = this; |
54 | else | ||
55 | return QS_FALSE; | ||
54 | 56 | ||
55 | if ( *iface ) | 57 | if ( *iface ) |
56 | (*iface)->addRef(); | 58 | (*iface)->addRef(); |
57 | return QS_OK; | 59 | return QS_OK; |
58 | } | 60 | } |
59 | 61 | ||
60 | Q_EXPORT_INTERFACE() | 62 | Q_EXPORT_INTERFACE() |
61 | { | 63 | { |
62 | Q_CREATE_INSTANCE( VolumeAppletImpl ) | 64 | Q_CREATE_INSTANCE( VolumeAppletImpl ) |
63 | } | 65 | } |
64 | 66 | ||
65 | 67 | ||