From 3bdf11c7117e28cda91a1447b8510d7deba94b99 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 27 Oct 2002 16:56:57 +0000 Subject: light sensor more generell, not only ipaq --- diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 77c6b40..fb40adc 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp @@ -141,7 +141,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) // ipaq sensor - config.setGroup( "Ipaqlightsensor" ); + config.setGroup( "lightsensor" ); auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",0) != 0 ); //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); @@ -227,10 +227,9 @@ void LightSettings::accept() ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() ); - // only make ipaq light sensor entries in config file if on an ipaq + // only make light sensor stuff appear if the unit has a sensor if ( ODevice::inst()->hasLightSensor() ) { - // ipaq sensor - config.setGroup( "Ipaqlightsensor" ); + config.setGroup( "lightsensor" ); config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); //config.writeEntry( "Steps", LightStepSpin->value() ); @@ -269,8 +268,6 @@ void LightSettings::applyBrightnessAC() } } - - void LightSettings::done(int r) { QDialog::done(r); -- cgit v0.9.0.2