summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index c021ad4..aa36e06 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -163,4 +163,2 @@ void LightSettings::accept()
int i_suspend = interval_suspend->value();
- QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" );
- e << i_dim << i_lightoff << i_suspend;
@@ -170,4 +168,2 @@ void LightSettings::accept()
int i_suspend_ac = interval_suspend_ac_3->value();
- QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" );
- e << i_dim_ac << i_lightoff_ac << i_suspend_ac;
@@ -179,5 +175,5 @@ void LightSettings::accept()
config.writeEntry( "LcdOffOnly", LcdOffOnly->isChecked() );
- config.writeEntry( "Dim", interval_dim->value() );
- config.writeEntry( "LightOff", interval_lightoff->value() );
- config.writeEntry( "Suspend", interval_suspend->value() );
+ config.writeEntry( "Dim", i_dim );
+ config.writeEntry( "LightOff", i_lightoff );
+ config.writeEntry( "Suspend", i_suspend );
config.writeEntry( "Brightness",
@@ -188,5 +184,5 @@ void LightSettings::accept()
config.writeEntry( "LcdOffOnly", LcdOffOnly_2_3->isChecked() );
- config.writeEntry( "Dim", interval_dim_ac_3->value() );
- config.writeEntry( "LightOff", interval_lightoff_ac_3->value() );
- config.writeEntry( "Suspend", interval_suspend_ac_3->value() );
+ config.writeEntry( "Dim", i_dim_ac );
+ config.writeEntry( "LightOff", i_lightoff_ac );
+ config.writeEntry( "Suspend", i_suspend_ac );
config.writeEntry( "Brightness",
@@ -197,3 +193,2 @@ void LightSettings::accept()
if ( ODevice::inst()->hasLightSensor() ) {
- config.setGroup( "lightsensor" );
config.setGroup( "Battery" );
@@ -213,6 +208,16 @@ void LightSettings::accept()
config.writeEntry( "power_critical", criticalSpinBox->value() );
- QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()");
-
config.write();
+ {
+ QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" );
+ }
+ {
+ QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" );
+ e << -1;
+ }
+ {
+ QCopEnvelope e ( "QPE/System", "setBacklight(int)" );
+ e << -1;
+ }
+
QDialog::accept();