Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index 5966a84..e9861e8 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -9,44 +9,44 @@ | |||
9 | 9 | ||
10 | SuspendApplet::SuspendApplet ( ) | 10 | SuspendApplet::SuspendApplet ( ) |
11 | : QObject ( 0, "SuspendApplet" ), ref ( 0 ) | 11 | : QObject ( 0, "SuspendApplet" ), ref ( 0 ) |
12 | { | 12 | { |
13 | } | 13 | } |
14 | 14 | ||
15 | SuspendApplet::~SuspendApplet ( ) | 15 | SuspendApplet::~SuspendApplet ( ) |
16 | { | 16 | { |
17 | } | 17 | } |
18 | 18 | ||
19 | int SuspendApplet::position ( ) const | 19 | int SuspendApplet::position ( ) const |
20 | { | 20 | { |
21 | return 0; | 21 | return 2; |
22 | } | 22 | } |
23 | 23 | ||
24 | QString SuspendApplet::name ( ) const | 24 | QString SuspendApplet::name ( ) const |
25 | { | 25 | { |
26 | return tr( "Suspend shortcut" ); | 26 | return tr( "Suspend shortcut" ); |
27 | } | 27 | } |
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 ( "Shutdown" ); | 37 | QImage img = Resource::loadImage ( "suspend" ); |
38 | 38 | ||
39 | if ( !img. isNull ( )) | 39 | if ( !img. isNull ( )) |
40 | pix. convertFromImage ( img. smoothScale ( 16, 16 )); | 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/Desktop", "suspend()" ); |