summaryrefslogtreecommitdiffabout
path: root/kalarmd
authorzautrix <zautrix>2005-01-05 21:30:19 (UTC)
committer zautrix <zautrix>2005-01-05 21:30:19 (UTC)
commited3b1be69915eaff3bfad542fd50bb18624c323e (patch) (unidiff)
tree2c721bafdd75113c2b92d305ad4cf4199a6cef07 /kalarmd
parent9bbe06c6cbf70ab8741acc6b356890c072b103e8 (diff)
downloadkdepimpi-ed3b1be69915eaff3bfad542fd50bb18624c323e.zip
kdepimpi-ed3b1be69915eaff3bfad542fd50bb18624c323e.tar.gz
kdepimpi-ed3b1be69915eaff3bfad542fd50bb18624c323e.tar.bz2
fix
Diffstat (limited to 'kalarmd') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonapplet.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/kalarmd/simplealarmdaemonapplet.cpp b/kalarmd/simplealarmdaemonapplet.cpp
index 3277036..73b1e07 100644
--- a/kalarmd/simplealarmdaemonapplet.cpp
+++ b/kalarmd/simplealarmdaemonapplet.cpp
@@ -11,13 +11,13 @@ SimpleAlarmDaemonApplet::SimpleAlarmDaemonApplet()
11{ 11{
12 12
13} 13}
14 14
15SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() 15SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet()
16{ 16{
17 //delete mApplet; 17 delete mApplet;
18 mApplet = 0; 18 mApplet = 0;
19} 19}
20 20
21 21
22QWidget *SimpleAlarmDaemonApplet::applet( QWidget *parent ) 22QWidget *SimpleAlarmDaemonApplet::applet( QWidget *parent )
23{ 23{
@@ -38,23 +38,21 @@ int 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 // qDebug(" SimpleAlarmDaemonApplet::queryInterface ");
45 *iface = 0; 44 *iface = 0;
46 if ( uuid == IID_QUnknown ) 45 if ( uuid == IID_QUnknown )
47 *iface = this; 46 *iface = this;
48 else if ( uuid == IID_TaskbarApplet ) 47 else if ( uuid == IID_TaskbarApplet )
49 *iface = this; 48 *iface = this;
50
51 if ( *iface ) { 49 if ( *iface ) {
52 (*iface)->addRef(); 50 (*iface)->addRef();
53 return QS_OK; 51 return QS_OK;
54 } 52 }
55 return QE_NOINTERFACE; 53 return QS_FALSE;
56} 54}
57Q_EXPORT_INTERFACE() 55Q_EXPORT_INTERFACE()
58{ 56{
59 Q_CREATE_INSTANCE( SimpleAlarmDaemonApplet ) 57 Q_CREATE_INSTANCE( SimpleAlarmDaemonApplet )
60} 58}