summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonapplet.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/kalarmd/simplealarmdaemonapplet.cpp b/kalarmd/simplealarmdaemonapplet.cpp
index 94d8428..38a744f 100644
--- a/kalarmd/simplealarmdaemonapplet.cpp
+++ b/kalarmd/simplealarmdaemonapplet.cpp
@@ -37,22 +37,23 @@ QWidget *SimpleAlarmDaemonApplet::applet( QWidget *parent )
37int SimpleAlarmDaemonApplet::position() const 37int SimpleAlarmDaemonApplet::position() const
38{ 38{
39 return 7; 39 return 7;
40} 40}
41 41
42QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 42QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
43{ 43{
44 *iface = 0; 44 *iface = 0;
45 if ( uuid == IID_QUnknown ) 45 if ( uuid == IID_QUnknown )
46 *iface = this; 46 *iface = this;
47 else if ( uuid == IID_TaskbarApplet ) 47 else if ( uuid == IID_TaskbarApplet )
48 *iface = this; 48 *iface = this;
49 49 if ( *iface ) {
50 if ( *iface ) 50 //(*iface)->addRef();
51 (*iface)->addRef(); 51 return QS_OK;
52 return QS_OK; 52 }
53 return QE_NOCOMPONENT;
53} 54}
54 55
55Q_EXPORT_INTERFACE() 56Q_EXPORT_INTERFACE()
56{ 57{
57 Q_CREATE_INSTANCE( SimpleAlarmDaemonApplet ) 58 Q_CREATE_INSTANCE( SimpleAlarmDaemonApplet )
58} 59}