From 98e94a485c456304d5f0b7a1f281470e2c0ac705 Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 24 Apr 2005 22:08:11 +0000 Subject: Resource -> OResource --- (limited to 'core/applets') 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,7 +1,8 @@ #include "home.h" +#include + #include -#include #include #include @@ -42,11 +43,7 @@ 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; } diff --git a/core/applets/homeapplet/homeapplet.pro b/core/applets/homeapplet/homeapplet.pro index a8db61f..e21e80f 100644 --- a/core/applets/homeapplet/homeapplet.pro +++ b/core/applets/homeapplet/homeapplet.pro @@ -6,7 +6,7 @@ TARGET = homeapplet DESTDIR = $(OPIEDIR)/plugins/applets INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lqpe +LIBS += -lqpe -lopiecore2 VERSION = 1.0.0 include( $(OPIEDIR)/include.pro ) -- cgit v0.9.0.2