summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp14
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
@@ -59,7 +59,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
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 );
@@ -101,5 +101,5 @@ void LightSettings::accept()
{
if ( qApp->focusWidget() )
- qApp->focusWidget()->clearFocus();
+ qApp->focusWidget()->clearFocus();
applyBrightness();
@@ -120,5 +120,5 @@ void LightSettings::accept()
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();
@@ -129,5 +129,5 @@ void LightSettings::applyBrightness()
{
int bright = (brightness->maxValue()-brightness->value())*255
- / brightness->maxValue();
+ / brightness->maxValue();
set_fl(bright);
}
@@ -136,5 +136,5 @@ void LightSettings::applyBrightness()
void LightSettings::done(int r)
{
- QDialog::done(r);
- close ( );
+ QDialog::done(r);
+ close ( );
}