author | drw <drw> | 2005-06-05 22:11:17 (UTC) |
---|---|---|
committer | drw <drw> | 2005-06-05 22:11:17 (UTC) |
commit | e2b65062bd7554062fcc87bbf406c2e3a54d79a2 (patch) (side-by-side diff) | |
tree | 52267420665f677fd9c442a4207874af9ccac2a0 /noncore/applets/brightnessapplet/brightnessapplet.cpp | |
parent | d5ab3d3170acd2f4ff03f42db8ad93251a698add (diff) | |
download | opie-e2b65062bd7554062fcc87bbf406c2e3a54d79a2.zip opie-e2b65062bd7554062fcc87bbf406c2e3a54d79a2.tar.gz opie-e2b65062bd7554062fcc87bbf406c2e3a54d79a2.tar.bz2 |
Resource -> OResource and fix compile warning
Diffstat (limited to 'noncore/applets/brightnessapplet/brightnessapplet.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/brightnessapplet/brightnessapplet.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
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,28 +1,28 @@ /* - This file is part of the Opie Project + This file is part of the Opie Project =. (C) 2004 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> .=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_,=:_. -<s. This program is distributed in the hope that - + . -:. = it will be useful, but WITHOUT ANY WARRANTY; - : .. .:, . . . without even the implied warranty of - =_ + =;=|` MERCHANTABILITY or FITNESS FOR A - _.=:. : :=>`: 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_,=:_. -<s. This program is distributed in the hope that + + . -:. = it will be useful, but WITHOUT ANY WARRANTY; + : .. .:, . . . without even the implied warranty of + =_ + =;=|` MERCHANTABILITY or FITNESS FOR A + _.=:. : :=>`: 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. @@ -32,14 +32,14 @@ /* OPIE */ #include <opie2/odebug.h> #include <opie2/odevice.h> +#include <opie2/oresource.h> #include <opie2/otaskbarapplet.h> #include <qpe/applnk.h> #include <qpe/config.h> #include <qpe/power.h> #include <qpe/qcopenvelope_qws.h> -#include <qpe/resource.h> using namespace Opie::Core; using namespace Opie::Ui; /* QT */ @@ -150,9 +150,9 @@ BrightnessApplet::BrightnessApplet( QWidget *parent, const char *name ) :OTaskbarApplet( parent, 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" ); } @@ -213,9 +213,9 @@ int BrightnessApplet::calcBrightnessValue() return (v * 255 + _control->slider->maxValue() / 2) / _control->slider->maxValue(); } -void BrightnessApplet::sliderMoved( int value ) +void BrightnessApplet::sliderMoved( int /*value*/ ) { #ifndef QT_NO_COP QCopEnvelope e("QPE/System", "setBacklight(int)"); e << calcBrightnessValue(); |