author | llornkcor <llornkcor> | 2002-04-17 03:19:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-17 03:19:16 (UTC) |
commit | 530f334d28c6156c4a50ba072b6d638a507c9686 (patch) (side-by-side diff) | |
tree | e364ab2ccce7c4c4e76cbdba1629ccf5d07e1a80 /core | |
parent | 2d9c872bd5ae7eb5c42a7e9954cec793db0ea729 (diff) | |
download | opie-530f334d28c6156c4a50ba072b6d638a507c9686.zip opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.gz opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.bz2 |
LCD only off on suspend patch
-rw-r--r-- | core/settings/light-and-power/light.cpp | 2 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 63 |
2 files changed, 39 insertions, 26 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 24e1fab..960a165 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp @@ -69,4 +69,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); + LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); int maxbright = qpe_sysBrightnessSteps(); initbright = config.readNumEntry("Brightness",255); @@ -114,4 +115,5 @@ void LightSettings::accept() config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); + config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); config.writeEntry( "Interval_Dim", interval_dim->value() ); config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index 47775f7..f2a4552 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui @@ -12,6 +12,6 @@ <x>0</x> <y>0</y> - <width>256</width> - <height>316</height> + <width>269</width> + <height>317</height> </rect> </property> @@ -66,9 +66,9 @@ <property stdset="1"> <name>margin</name> - <number>6</number> + <number>11</number> </property> <property stdset="1"> <name>spacing</name> - <number>3</number> + <number>6</number> </property> <widget row="1" column="1" > @@ -126,26 +126,4 @@ </property> </widget> - <widget row="1" column="0" > - <class>QCheckBox</class> - <property stdset="1"> - <name>name</name> - <cstring>screensaver_lightoff</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>0</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>text</name> - <string>Light off after</string> - </property> - <property stdset="1"> - <name>checked</name> - <bool>true</bool> - </property> - </widget> <widget row="0" column="0" > <class>QCheckBox</class> @@ -208,4 +186,37 @@ </property> </widget> + <widget row="3" column="0" rowspan="1" colspan="2" > + <class>QCheckBox</class> + <property stdset="1"> + <name>name</name> + <cstring>LcdOffOnly</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Only deactivate LCD during Suspend</string> + </property> + </widget> + <widget row="1" column="0" > + <class>QCheckBox</class> + <property stdset="1"> + <name>name</name> + <cstring>screensaver_lightoff</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>text</name> + <string>Light off after</string> + </property> + <property stdset="1"> + <name>checked</name> + <bool>true</bool> + </property> + </widget> </grid> </widget> |