Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index 4fbd704..f675766 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -1,12 +1,13 @@ | |||
1 | #include "suspend.h" | 1 | #include "suspend.h" |
2 | 2 | ||
3 | #include <opie2/oresource.h> | ||
4 | |||
3 | #include <qpe/applnk.h> | 5 | #include <qpe/applnk.h> |
4 | #include <qpe/resource.h> | ||
5 | #include <qpe/qcopenvelope_qws.h> | 6 | #include <qpe/qcopenvelope_qws.h> |
6 | 7 | ||
7 | #include <qapplication.h> | 8 | #include <qapplication.h> |
8 | 9 | ||
9 | SuspendApplet::SuspendApplet ( ) | 10 | SuspendApplet::SuspendApplet ( ) |
10 | : QObject ( 0, "SuspendApplet" ) | 11 | : QObject ( 0, "SuspendApplet" ) |
11 | { | 12 | { |
12 | } | 13 | } |
@@ -37,21 +38,17 @@ QString SuspendApplet::tr( const char* s ) const | |||
37 | 38 | ||
38 | QString SuspendApplet::tr( const char* s, const char* p ) const | 39 | QString SuspendApplet::tr( const char* s, const char* p ) const |
39 | { | 40 | { |
40 | return qApp->translate( "SuspendApplet", s, p ); | 41 | return qApp->translate( "SuspendApplet", s, p ); |
41 | } | 42 | } |
42 | 43 | ||
43 | QIconSet SuspendApplet::icon ( ) const | 44 | QIconSet SuspendApplet::icon ( ) const |
44 | { | 45 | { |
45 | QPixmap pix; | 46 | QPixmap pix = Opie::Core::OResource::loadPixmap( "suspend", Opie::Core::OResource::SmallIcon ); |
46 | QImage img = Resource::loadImage ( "suspend" ); | ||
47 | |||
48 | if ( !img. isNull ( )) | ||
49 | pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | ||
50 | return pix; | 47 | return pix; |
51 | } | 48 | } |
52 | 49 | ||
53 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const | 50 | QPopupMenu *SuspendApplet::popup ( QWidget * ) const |
54 | { | 51 | { |
55 | return 0; | 52 | return 0; |
56 | } | 53 | } |
57 | 54 | ||