Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index e9861e8..b502e87 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -28,47 +28,47 @@ QString SuspendApplet::name ( ) const | |||
28 | 28 | ||
29 | QString SuspendApplet::text ( ) const | 29 | QString SuspendApplet::text ( ) const |
30 | { | 30 | { |
31 | return tr( "Suspend" ); | 31 | return tr( "Suspend" ); |
32 | } | 32 | } |
33 | 33 | ||
34 | QIconSet SuspendApplet::icon ( ) const | 34 | QIconSet SuspendApplet::icon ( ) const |
35 | { | 35 | { |
36 | QPixmap pix; | 36 | QPixmap pix; |
37 | QImage img = Resource::loadImage ( "suspend" ); | 37 | QImage img = Resource::loadImage ( "suspend" ); |
38 | 38 | ||
39 | if ( !img. isNull ( )) | 39 | if ( !img. isNull ( )) |
40 | pix. convertFromImage ( img. smoothScale ( 14, 14 )); | 40 | pix. convertFromImage ( img. smoothScale ( 14, 14 )); |
41 | return pix; | 41 | return pix; |
42 | } | 42 | } |
43 | 43 | ||
44 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const | 44 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const |
45 | { | 45 | { |
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | void SuspendApplet::activated ( ) | 49 | void SuspendApplet::activated ( ) |
50 | { | 50 | { |
51 | // suspend | 51 | // suspend |
52 | QCopEnvelope ( "QPE/Desktop", "suspend()" ); | 52 | QCopEnvelope ( "QPE/System", "suspend()" ); |
53 | } | 53 | } |
54 | 54 | ||
55 | 55 | ||
56 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 56 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
57 | { | 57 | { |
58 | *iface = 0; | 58 | *iface = 0; |
59 | if ( uuid == IID_QUnknown ) | 59 | if ( uuid == IID_QUnknown ) |
60 | *iface = this; | 60 | *iface = this; |
61 | else if ( uuid == IID_MenuApplet ) | 61 | else if ( uuid == IID_MenuApplet ) |
62 | *iface = this; | 62 | *iface = this; |
63 | 63 | ||
64 | if ( *iface ) | 64 | if ( *iface ) |
65 | (*iface)-> addRef ( ); | 65 | (*iface)-> addRef ( ); |
66 | return QS_OK; | 66 | return QS_OK; |
67 | } | 67 | } |
68 | 68 | ||
69 | Q_EXPORT_INTERFACE( ) | 69 | Q_EXPORT_INTERFACE( ) |
70 | { | 70 | { |
71 | Q_CREATE_INSTANCE( SuspendApplet ) | 71 | Q_CREATE_INSTANCE( SuspendApplet ) |
72 | } | 72 | } |
73 | 73 | ||
74 | 74 | ||