summaryrefslogtreecommitdiff
path: root/core
authorsandman <sandman>2002-10-28 02:33:02 (UTC)
committer sandman <sandman>2002-10-28 02:33:02 (UTC)
commit37397a824a807195ba440117a6bac0043ea788a1 (patch) (unidiff)
tree0fc3ae6178d46b7c1fa834c1e43a8248369970d9 /core
parentc1f70789d18145743fd71464c091612788cc5e3f (diff)
downloadopie-37397a824a807195ba440117a6bac0043ea788a1.zip
opie-37397a824a807195ba440117a6bac0043ea788a1.tar.gz
opie-37397a824a807195ba440117a6bac0043ea788a1.tar.bz2
some minor adjustments in the l&p <-> launcher interface routine
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()
163 int i_suspend = interval_suspend->value(); 163 int i_suspend = interval_suspend->value();
164 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" );
165 e << i_dim << i_lightoff << i_suspend;
166 164
@@ -170,4 +168,2 @@ void LightSettings::accept()
170 int i_suspend_ac = interval_suspend_ac_3->value(); 168 int i_suspend_ac = interval_suspend_ac_3->value();
171 QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" );
172 e << i_dim_ac << i_lightoff_ac << i_suspend_ac;
173 169
@@ -179,5 +175,5 @@ void LightSettings::accept()
179 config.writeEntry( "LcdOffOnly", LcdOffOnly->isChecked() ); 175 config.writeEntry( "LcdOffOnly", LcdOffOnly->isChecked() );
180 config.writeEntry( "Dim", interval_dim->value() ); 176 config.writeEntry( "Dim", i_dim );
181 config.writeEntry( "LightOff", interval_lightoff->value() ); 177 config.writeEntry( "LightOff", i_lightoff );
182 config.writeEntry( "Suspend", interval_suspend->value() ); 178 config.writeEntry( "Suspend", i_suspend );
183 config.writeEntry( "Brightness", 179 config.writeEntry( "Brightness",
@@ -188,5 +184,5 @@ void LightSettings::accept()
188 config.writeEntry( "LcdOffOnly", LcdOffOnly_2_3->isChecked() ); 184 config.writeEntry( "LcdOffOnly", LcdOffOnly_2_3->isChecked() );
189 config.writeEntry( "Dim", interval_dim_ac_3->value() ); 185 config.writeEntry( "Dim", i_dim_ac );
190 config.writeEntry( "LightOff", interval_lightoff_ac_3->value() ); 186 config.writeEntry( "LightOff", i_lightoff_ac );
191 config.writeEntry( "Suspend", interval_suspend_ac_3->value() ); 187 config.writeEntry( "Suspend", i_suspend_ac );
192 config.writeEntry( "Brightness", 188 config.writeEntry( "Brightness",
@@ -197,3 +193,2 @@ void LightSettings::accept()
197 if ( ODevice::inst()->hasLightSensor() ) { 193 if ( ODevice::inst()->hasLightSensor() ) {
198 config.setGroup( "lightsensor" );
199 config.setGroup( "Battery" ); 194 config.setGroup( "Battery" );
@@ -213,6 +208,16 @@ void LightSettings::accept()
213 config.writeEntry( "power_critical", criticalSpinBox->value() ); 208 config.writeEntry( "power_critical", criticalSpinBox->value() );
214 QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()");
215
216 config.write(); 209 config.write();
217 210
211 {
212 QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" );
213 }
214 {
215 QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" );
216 e << -1;
217 }
218 {
219 QCopEnvelope e ( "QPE/System", "setBacklight(int)" );
220 e << -1;
221 }
222
218 QDialog::accept(); 223 QDialog::accept();