Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (show 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,6 +1,7 @@ #include "suspend.h" +#include <opie2/oresource.h> + #include <qpe/applnk.h> -#include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> @@ -43,9 +44,5 @@ QString SuspendApplet::tr( const char* s, const char* p ) const QIconSet SuspendApplet::icon ( ) const { - QPixmap pix; - QImage img = Resource::loadImage ( "suspend" ); - - if ( !img. isNull ( )) - pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + QPixmap pix = Opie::Core::OResource::loadPixmap( "suspend", Opie::Core::OResource::SmallIcon ); return pix; } |