From 2391cfd9c79b87b3b00a4bb4a1d76981debb4486 Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 24 Apr 2005 21:32:37 +0000 Subject: Resource -> OResource --- (limited to 'core/applets/rotateapplet') diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index d13c2c0..9abbde8 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp @@ -1,28 +1,30 @@ /* - This file is part of the OPIE Project +                 This file is part of the Opie Project + Copyright (C) 2003 Maximilian Reiss Copyright (C) 2003 Greg Gilbert -               =. Copyright (C) 2004 Michael Lauer -             .=l. -           .>+-= - _;:,     .>    :=|. This library is free software; you can -.> <,   >  .   <= redistribute it and/or modify it under -:=1 )Y*s>-.--   : the terms of the GNU Library General Public -.="- .-=="i,     .._ License as published by the Free Software - - .   .-<_>     .<> Foundation; either version 2 of the License, -     ._= =}       : or (at your option) any later version. -    .%+i>       _;_. -    .i_,=:_.      -: PARTICULAR PURPOSE. See the GNU -..}^=.=       =       ; Library General Public License for more -++=   -.     .     .: details. - :     =  ...= . :.=- - -.   .:....=;==+<; You should have received a copy of the GNU -  -_. . .   )=.  = Library General Public License along with -    --        :-= this library; see the file COPYING.LIB. + Copyright (C) 2004 Michael Lauer + =. + .=l. +           .>+-= + _;:,     .>    :=|. This program is free software; you can +.> <`_,   >  .   <= redistribute it and/or modify it under + :`=1 )Y*s>-.--   : the terms of the GNU Library General Public +.="- .-=="i,     .._ License as published by the Free Software + - .   .-<_>     .<> Foundation; either version 2 of the License, +     ._= =}       : or (at your option) any later version. +    .%`+i>       _;_. +    .i_,=:_.      -`: PARTICULAR PURPOSE. See the GNU +..}^=.=       =       ; Library General Public License for more +++=   -.     .`     .: details. + :     =  ...= . :.=- + -.   .:....=;==+<; You should have received a copy of the GNU +  -_. . .   )=.  = Library General Public License along with +    --        :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -33,11 +35,12 @@ /* OPIE */ #include #include +#include + #include #include #include #include -#include using namespace Opie::Core; /* STD */ @@ -139,10 +142,7 @@ QString RotateApplet::tr( const char* s, const char* p ) const QIconSet RotateApplet::icon() const { - QPixmap pix; - QImage img = Resource::loadImage( "Rotation" ); - if ( !img.isNull() ) - pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + QPixmap pix = Opie::Core::OResource::loadPixmap( "Rotation", Opie::Core::OResource::SmallIcon ); return pix; } -- cgit v0.9.0.2