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,26 +1,26 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | =. (C) 2004 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 4 | =. (C) 2004 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> |
5 | .=l. Based on Qtopia 1.7 Brightnessapplet (C) 2003-2004 TrollTech | 5 | .=l. Based on Qtopia 1.7 Brightnessapplet (C) 2003-2004 TrollTech |
6 | .>+-= | 6 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; General Public License for more | 19 | ..}^=.= = ; General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = General Public License along with | 23 | -_. . . )=. = General Public License along with |
24 | -- :-=` this application; see the file COPYING.LIB. | 24 | -- :-=` this application; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
@@ -34,4 +34,5 @@ | |||
34 | #include <opie2/odebug.h> | 34 | #include <opie2/odebug.h> |
35 | #include <opie2/odevice.h> | 35 | #include <opie2/odevice.h> |
36 | #include <opie2/oresource.h> | ||
36 | #include <opie2/otaskbarapplet.h> | 37 | #include <opie2/otaskbarapplet.h> |
37 | #include <qpe/applnk.h> | 38 | #include <qpe/applnk.h> |
@@ -39,5 +40,4 @@ | |||
39 | #include <qpe/power.h> | 40 | #include <qpe/power.h> |
40 | #include <qpe/qcopenvelope_qws.h> | 41 | #include <qpe/qcopenvelope_qws.h> |
41 | #include <qpe/resource.h> | ||
42 | using namespace Opie::Core; | 42 | using namespace Opie::Core; |
43 | using namespace Opie::Ui; | 43 | using namespace Opie::Ui; |
@@ -152,5 +152,5 @@ BrightnessApplet::BrightnessApplet( QWidget *parent, const char *name ) | |||
152 | setFixedHeight( AppLnk::smallIconSize() ); | 152 | setFixedHeight( AppLnk::smallIconSize() ); |
153 | setFixedWidth( AppLnk::smallIconSize() ); | 153 | setFixedWidth( AppLnk::smallIconSize() ); |
154 | _pixmap.convertFromImage( Resource::loadImage( "brightnessapplet/icon" ).smoothScale( height(), width() ) ); | 154 | _pixmap = Opie::Core::OResource::loadPixmap( "brightnessapplet/icon", Opie::Core::OResource::SmallIcon ); |
155 | _control = new BrightnessAppletControl( this, "control" ); | 155 | _control = new BrightnessAppletControl( this, "control" ); |
156 | } | 156 | } |
@@ -215,5 +215,5 @@ int BrightnessApplet::calcBrightnessValue() | |||
215 | 215 | ||
216 | 216 | ||
217 | void BrightnessApplet::sliderMoved( int value ) | 217 | void BrightnessApplet::sliderMoved( int /*value*/ ) |
218 | { | 218 | { |
219 | #ifndef QT_NO_COP | 219 | #ifndef QT_NO_COP |