From e0205bac48b9d23af9feb48004c24fcf7a5e8200 Mon Sep 17 00:00:00 2001 From: drw Date: Wed, 15 Jun 2005 22:39:20 +0000 Subject: Resource -> OResource --- (limited to 'examples/menuapplet/example.cpp') diff --git a/examples/menuapplet/example.cpp b/examples/menuapplet/example.cpp index 8ae77da..079030f 100644 --- a/examples/menuapplet/example.cpp +++ b/examples/menuapplet/example.cpp @@ -1,7 +1,6 @@ #include "example.h" -#include -#include +#include /* QT */ #include @@ -35,11 +34,7 @@ QString MenuAppletExample::text() const QIconSet MenuAppletExample::icon() const { - QPixmap pix; - QImage img = Resource::loadImage( "Tux" ); - if ( !img.isNull() ) - pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); - return pix; + return Opie::Core::OResource::loadPixmap( "Tux", Opie::Core::OResource::SmallIcon ); } QPopupMenu* MenuAppletExample::popup(QWidget*) const -- cgit v0.9.0.2