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