author | harlekin <harlekin> | 2002-10-27 16:56:57 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-27 16:56:57 (UTC) |
commit | 3bdf11c7117e28cda91a1447b8510d7deba94b99 (patch) (side-by-side diff) | |
tree | bd319dc62298cc1237adbc889beea099a1bbe409 | |
parent | 27a2748d4a5893a888b19d3ed453be29cac0d75b (diff) | |
download | opie-3bdf11c7117e28cda91a1447b8510d7deba94b99.zip opie-3bdf11c7117e28cda91a1447b8510d7deba94b99.tar.gz opie-3bdf11c7117e28cda91a1447b8510d7deba94b99.tar.bz2 |
light sensor more generell, not only ipaq
-rw-r--r-- | core/settings/light-and-power/light.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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 @@ -143,3 +143,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) // ipaq sensor - config.setGroup( "Ipaqlightsensor" ); + config.setGroup( "lightsensor" ); auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); @@ -229,6 +229,5 @@ void LightSettings::accept() - // 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() ); @@ -271,4 +270,2 @@ void LightSettings::applyBrightnessAC() - - void LightSettings::done(int r) |