Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 | ||
48 | extern int qpe_sysBrightnessSteps(); | 48 | #include <opie/odevice.h> |
49 | |||
49 | 50 | ||
50 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | 51 | LightSettings::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 ); |