summaryrefslogtreecommitdiff
authorsandman <sandman>2002-09-06 19:28:46 (UTC)
committer sandman <sandman>2002-09-06 19:28:46 (UTC)
commit088a233d52f2b06b6f478e73776eb2b430b2a1a5 (patch) (unidiff)
tree5316a2ea38418a0dd00977895f73ef06434eb9e5
parent61b8be0405b46896160afaf7f4a2082527f01f58 (diff)
downloadopie-088a233d52f2b06b6f478e73776eb2b430b2a1a5.zip
opie-088a233d52f2b06b6f478e73776eb2b430b2a1a5.tar.gz
opie-088a233d52f2b06b6f478e73776eb2b430b2a1a5.tar.bz2
Changes to use the new ODevice interface for LCD brightness control
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/light-and-power/light-and-power.pro2
-rw-r--r--core/settings/light-and-power/light.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/core/settings/light-and-power/light-and-power.pro b/core/settings/light-and-power/light-and-power.pro
index 9d2452c..43395bf 100644
--- a/core/settings/light-and-power/light-and-power.pro
+++ b/core/settings/light-and-power/light-and-power.pro
@@ -7,5 +7,5 @@ INTERFACES = lightsettingsbase.ui
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8 DEPENDPATH+= ../$(OPIEDIR)/include 8 DEPENDPATH+= ../$(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe -lopie
10 TARGET = light-and-power 10 TARGET = light-and-power
11 11
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index e959603..fbea905 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -46,5 +46,6 @@
46#endif 46#endif
47 47
48extern int qpe_sysBrightnessSteps(); 48#include <opie/odevice.h>
49
49 50
50LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) 51LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
@@ -70,5 +71,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
70 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); 71 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 );
71 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 72 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
72 int maxbright = qpe_sysBrightnessSteps(); 73 int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( );
73 initbright = config.readNumEntry("Brightness",255); 74 initbright = config.readNumEntry("Brightness",255);
74 brightness->setMaxValue( maxbright ); 75 brightness->setMaxValue( maxbright );