-rw-r--r-- | core/settings/light-and-power/light-and-power.pro | 2 | ||||
-rw-r--r-- | core/settings/light-and-power/light.cpp | 5 |
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 | |||
@@ -6,7 +6,7 @@ SOURCES = light.cpp main.cpp | |||
6 | INTERFACES= lightsettingsbase.ui | 6 | INTERFACES= lightsettingsbase.ui |
7 | INCLUDEPATH += $(OPIEDIR)/include | 7 | INCLUDEPATH += $(OPIEDIR)/include |
8 | DEPENDPATH+= ../$(OPIEDIR)/include | 8 | DEPENDPATH+= ../$(OPIEDIR)/include |
9 | LIBS += -lqpe | 9 | LIBS += -lqpe -lopie |
10 | TARGET = light-and-power | 10 | TARGET = light-and-power |
11 | 11 | ||
12 | TRANSLATIONS = ../../../i18n/de/light-and-power.ts \ | 12 | TRANSLATIONS = ../../../i18n/de/light-and-power.ts \ |
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 | |||
@@ -45,7 +45,8 @@ | |||
45 | #include <qstylefactory.h> | 45 | #include <qstylefactory.h> |
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 ) |
51 | : LightSettingsBase( parent, name, TRUE, fl ) | 52 | : LightSettingsBase( parent, name, TRUE, fl ) |
@@ -69,7 +70,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
69 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); | 70 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); |
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 ); |
75 | brightness->setTickInterval( QMAX(1,maxbright/16) ); | 76 | brightness->setTickInterval( QMAX(1,maxbright/16) ); |