author | drw <drw> | 2005-04-24 22:08:11 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-24 22:08:11 (UTC) |
commit | 98e94a485c456304d5f0b7a1f281470e2c0ac705 (patch) (side-by-side diff) | |
tree | 0b3bb1d20111ed27d5ec215b37adb1b6eeefa076 /core/applets/homeapplet/home.cpp | |
parent | bebd0bb33ac2508bf8df37a1f20c7ec404bcbc2d (diff) | |
download | opie-98e94a485c456304d5f0b7a1f281470e2c0ac705.zip opie-98e94a485c456304d5f0b7a1f281470e2c0ac705.tar.gz opie-98e94a485c456304d5f0b7a1f281470e2c0ac705.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'core/applets/homeapplet/home.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/homeapplet/home.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp index 02d1265..5a917ff 100644 --- a/core/applets/homeapplet/home.cpp +++ b/core/applets/homeapplet/home.cpp @@ -1,6 +1,7 @@ #include "home.h" +#include <opie2/oresource.h> + #include <qpe/applnk.h> -#include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> @@ -43,9 +44,5 @@ QString HomeApplet::tr( const char* s, const char* p ) const QIconSet HomeApplet::icon ( ) const { - QPixmap pix; - QImage img = Resource::loadImage ( "home" ); - - if ( !img. isNull ( )) - pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + QPixmap pix = Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ); return pix; } |