From e2b65062bd7554062fcc87bbf406c2e3a54d79a2 Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 05 Jun 2005 22:11:17 +0000 Subject: Resource -> OResource and fix compile warning --- (limited to 'noncore/applets') diff --git a/noncore/applets/brightnessapplet/brightnessapplet.cpp b/noncore/applets/brightnessapplet/brightnessapplet.cpp index 90fde05..f373dd8 100644 --- a/noncore/applets/brightnessapplet/brightnessapplet.cpp +++ b/noncore/applets/brightnessapplet/brightnessapplet.cpp @@ -1,27 +1,27 @@ /* -                 This file is part of the Opie Project + This file is part of the Opie Project =. (C) 2004 Michael 'Mickey' Lauer .=l. Based on Qtopia 1.7 Brightnessapplet (C) 2003-2004 TrollTech -           .>+-= - _;:,     .>    :=|. This program is free software; you can -.> <`_,   >  .   <= redistribute it and/or modify it under -:`=1 )Y*s>-.--   : the terms of the GNU 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 -..}^=.=       =       ; General Public License for more -++=   -.     .`     .: details. - :     =  ...= . :.=- - -.   .:....=;==+<; You should have received a copy of the GNU -  -_. . .   )=.  = General Public License along with -    --        :-=` this application; see the file COPYING.LIB. + .>+-= +_;:, .> :=|. This program is free software; you can +.> <`_, > . <= redistribute it and/or modify it under +:`=1 )Y*s>-.-- : the terms of the GNU 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 +..}^=.= = ; General Public License for more +++= -. .` .: details. +: = ...= . :.=- +-. .:....=;==+<; You should have received a copy of the GNU + -_. . . )=. = General Public License along with + -- :-=` this application; 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,12 +33,12 @@ /* OPIE */ #include #include +#include #include #include #include #include #include -#include using namespace Opie::Core; using namespace Opie::Ui; @@ -151,7 +151,7 @@ BrightnessApplet::BrightnessApplet( QWidget *parent, const char *name ) { setFixedHeight( AppLnk::smallIconSize() ); setFixedWidth( AppLnk::smallIconSize() ); - _pixmap.convertFromImage( Resource::loadImage( "brightnessapplet/icon" ).smoothScale( height(), width() ) ); + _pixmap = Opie::Core::OResource::loadPixmap( "brightnessapplet/icon", Opie::Core::OResource::SmallIcon ); _control = new BrightnessAppletControl( this, "control" ); } @@ -214,7 +214,7 @@ int BrightnessApplet::calcBrightnessValue() } -void BrightnessApplet::sliderMoved( int value ) +void BrightnessApplet::sliderMoved( int /*value*/ ) { #ifndef QT_NO_COP QCopEnvelope e("QPE/System", "setBacklight(int)"); -- cgit v0.9.0.2