From 088a233d52f2b06b6f478e73776eb2b430b2a1a5 Mon Sep 17 00:00:00 2001 From: sandman Date: Fri, 06 Sep 2002 19:28:46 +0000 Subject: Changes to use the new ODevice interface for LCD brightness control --- (limited to 'core/settings/light-and-power/light.cpp') 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 @@ #include #endif -extern int qpe_sysBrightnessSteps(); +#include + LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) : LightSettingsBase( parent, name, TRUE, fl ) @@ -69,7 +70,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); - int maxbright = qpe_sysBrightnessSteps(); + int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); initbright = config.readNumEntry("Brightness",255); brightness->setMaxValue( maxbright ); brightness->setTickInterval( QMAX(1,maxbright/16) ); -- cgit v0.9.0.2