author | drw <drw> | 2005-04-24 21:58:21 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-24 21:58:21 (UTC) |
commit | bebd0bb33ac2508bf8df37a1f20c7ec404bcbc2d (patch) (side-by-side diff) | |
tree | b730105ca766ff432d559957eadf8429d3094771 /core/applets/suspendapplet/suspend.cpp | |
parent | b513e26413e5b2aa7a52c23044e936a45b681f4b (diff) | |
download | opie-bebd0bb33ac2508bf8df37a1f20c7ec404bcbc2d.zip opie-bebd0bb33ac2508bf8df37a1f20c7ec404bcbc2d.tar.gz opie-bebd0bb33ac2508bf8df37a1f20c7ec404bcbc2d.tar.bz2 |
Resource -> OResource
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 @@ #include "suspend.h" +#include <opie2/oresource.h> + #include <qpe/applnk.h> -#include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> #include <qapplication.h> SuspendApplet::SuspendApplet ( ) : QObject ( 0, "SuspendApplet" ) { } @@ -37,21 +38,17 @@ QString SuspendApplet::tr( const char* s ) const QString SuspendApplet::tr( const char* s, const char* p ) const { return qApp->translate( "SuspendApplet", s, p ); } 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; } QPopupMenu *SuspendApplet::popup ( QWidget * ) const { return 0; } |