summaryrefslogtreecommitdiff
path: root/noncore/applets/autorotateapplet
authordrw <drw>2005-05-24 22:29:46 (UTC)
committer drw <drw>2005-05-24 22:29:46 (UTC)
commit3a7dd5b0904cdea71d486ffdea8bfd1aedb0af59 (patch) (side-by-side diff)
tree2573d5c8bdad9d95eede843615a5baa1a45bbc95 /noncore/applets/autorotateapplet
parenta2542a161d15feface21954afcd26f9ec51f131f (diff)
downloadopie-3a7dd5b0904cdea71d486ffdea8bfd1aedb0af59.zip
opie-3a7dd5b0904cdea71d486ffdea8bfd1aedb0af59.tar.gz
opie-3a7dd5b0904cdea71d486ffdea8bfd1aedb0af59.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore/applets/autorotateapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/applets/autorotateapplet/autorotate.cpp b/noncore/applets/autorotateapplet/autorotate.cpp
index 34802fb..28b631b 100644
--- a/noncore/applets/autorotateapplet/autorotate.cpp
+++ b/noncore/applets/autorotateapplet/autorotate.cpp
@@ -15,9 +15,9 @@
/* OPIE */
#include <opie2/odebug.h>
#include <opie2/otaskbarapplet.h>
+#include <opie2/oresource.h>
#include <qpe/applnk.h>
#include <qpe/config.h>
-#include <qpe/resource.h>
using namespace Opie::Core;
/* QT */
@@ -28,8 +28,8 @@ AutoRotate::AutoRotate(QWidget * parent):QWidget(parent)
setFixedWidth( AppLnk::smallIconSize() );
setFixedHeight( AppLnk::smallIconSize() );
- enabledPm.convertFromImage( Resource::loadImage("autorotate/rotate").smoothScale( height(), width() ) );
- disabledPm.convertFromImage( Resource::loadImage("autorotate/norotate").smoothScale( height(), width() ) );
+ enabledPm = Opie::Core::OResource::loadImage("autorotate/rotate", Opie::Core::OResource::SmallIcon);
+ disabledPm = Opie::Core::OResource::loadImage("autorotate/norotate", Opie::Core::OResource::SmallIcon);
repaint(true);
popupMenu = 0;