Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (show 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 63f16b8..e17142b 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -1,60 +1,60 @@ | |||
1 | #include <qpe/resource.h> | 1 | #include <qpe/resource.h> |
2 | #include <qpe/qcopenvelope_qws.h> | 2 | #include <qpe/qcopenvelope_qws.h> |
3 | 3 | ||
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | #include <qiconset.h> | 5 | #include <qiconset.h> |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | 7 | ||
8 | #include "suspend.h" | 8 | #include "suspend.h" |
9 | 9 | ||
10 | 10 | ||
11 | SuspendApplet::SuspendApplet ( ) | 11 | SuspendApplet::SuspendApplet ( ) |
12 | : QObject ( 0, "SuspendApplet" ), ref ( 0 ) | 12 | : QObject ( 0, "SuspendApplet" ) |
13 | { | 13 | { |
14 | } | 14 | } |
15 | 15 | ||
16 | SuspendApplet::~SuspendApplet ( ) | 16 | SuspendApplet::~SuspendApplet ( ) |
17 | { | 17 | { |
18 | } | 18 | } |
19 | 19 | ||
20 | int SuspendApplet::position ( ) const | 20 | int SuspendApplet::position ( ) const |
21 | { | 21 | { |
22 | return 2; | 22 | return 2; |
23 | } | 23 | } |
24 | 24 | ||
25 | QString SuspendApplet::name ( ) const | 25 | QString SuspendApplet::name ( ) const |
26 | { | 26 | { |
27 | return tr( "Suspend shortcut" ); | 27 | return tr( "Suspend shortcut" ); |
28 | } | 28 | } |
29 | 29 | ||
30 | QString SuspendApplet::text ( ) const | 30 | QString SuspendApplet::text ( ) const |
31 | { | 31 | { |
32 | return tr( "Suspend" ); | 32 | return tr( "Suspend" ); |
33 | } | 33 | } |
34 | 34 | ||
35 | QString SuspendApplet::tr( const char* s ) const | 35 | QString SuspendApplet::tr( const char* s ) const |
36 | { | 36 | { |
37 | return qApp->translate( "SuspendApplet", s, 0 ); | 37 | return qApp->translate( "SuspendApplet", s, 0 ); |
38 | } | 38 | } |
39 | 39 | ||
40 | QString SuspendApplet::tr( const char* s, const char* p ) const | 40 | QString SuspendApplet::tr( const char* s, const char* p ) const |
41 | { | 41 | { |
42 | return qApp->translate( "SuspendApplet", s, p ); | 42 | return qApp->translate( "SuspendApplet", s, p ); |
43 | } | 43 | } |
44 | 44 | ||
45 | QIconSet SuspendApplet::icon ( ) const | 45 | QIconSet SuspendApplet::icon ( ) const |
46 | { | 46 | { |
47 | QPixmap pix; | 47 | QPixmap pix; |
48 | QImage img = Resource::loadImage ( "suspend" ); | 48 | QImage img = Resource::loadImage ( "suspend" ); |
49 | 49 | ||
50 | if ( !img. isNull ( )) | 50 | if ( !img. isNull ( )) |
51 | pix. convertFromImage ( img. smoothScale ( 14, 14 )); | 51 | pix. convertFromImage ( img. smoothScale ( 14, 14 )); |
52 | return pix; | 52 | return pix; |
53 | } | 53 | } |
54 | 54 | ||
55 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const | 55 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const |
56 | { | 56 | { |
57 | return 0; | 57 | return 0; |
58 | } | 58 | } |
59 | 59 | ||
60 | void SuspendApplet::activated ( ) | 60 | void SuspendApplet::activated ( ) |