author | llornkcor <llornkcor> | 2002-07-21 12:45:31 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-21 12:45:31 (UTC) |
commit | edeab5f635166d88eee8135d982602a241240f40 (patch) (side-by-side diff) | |
tree | 6081d12cb81c17b660b43474c94d2ffe916ddb0a /core/settings | |
parent | 76d7938ec6b89aa11f54f9fbdad40bb358b4886a (diff) | |
download | opie-edeab5f635166d88eee8135d982602a241240f40.zip opie-edeab5f635166d88eee8135d982602a241240f40.tar.gz opie-edeab5f635166d88eee8135d982602a241240f40.tar.bz2 |
default dim time should be less than light off time
-rw-r--r-- | core/settings/light-and-power/light.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index b56ae11..e959603 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp @@ -58,9 +58,9 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) config.setGroup( "Screensaver" ); int interval; - interval = config.readNumEntry( "Interval_Dim", 30 ); + interval = config.readNumEntry( "Interval_Dim", 20 ); interval_dim->setValue( interval ); - interval = config.readNumEntry( "Interval_LightOff", 20 ); + interval = config.readNumEntry( "Interval_LightOff", 30 ); interval_lightoff->setValue( interval ); interval = config.readNumEntry( "Interval", 60 ); if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) @@ -100,7 +100,7 @@ void LightSettings::reject() void LightSettings::accept() { if ( qApp->focusWidget() ) - qApp->focusWidget()->clearFocus(); + qApp->focusWidget()->clearFocus(); applyBrightness(); @@ -119,7 +119,7 @@ void LightSettings::accept() config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); config.writeEntry( "Interval", interval_suspend->value() ); config.writeEntry( "Brightness", - (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); + (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); config.write(); QDialog::accept(); @@ -128,13 +128,13 @@ void LightSettings::accept() void LightSettings::applyBrightness() { int bright = (brightness->maxValue()-brightness->value())*255 - / brightness->maxValue(); + / brightness->maxValue(); set_fl(bright); } void LightSettings::done(int r) { - QDialog::done(r); - close ( ); + QDialog::done(r); + close ( ); } |