summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-17 03:19:16 (UTC)
committer llornkcor <llornkcor>2002-04-17 03:19:16 (UTC)
commit530f334d28c6156c4a50ba072b6d638a507c9686 (patch) (side-by-side diff)
treee364ab2ccce7c4c4e76cbdba1629ccf5d07e1a80
parent2d9c872bd5ae7eb5c42a7e9954cec793db0ea729 (diff)
downloadopie-530f334d28c6156c4a50ba072b6d638a507c9686.zip
opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.gz
opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.bz2
LCD only off on suspend patch
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp2
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui63
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
@@ -70,2 +70,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 );
+ LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
int maxbright = qpe_sysBrightnessSteps();
@@ -115,2 +116,3 @@ void LightSettings::accept()
config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() );
+ config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() );
config.writeEntry( "Interval_Dim", interval_dim->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
@@ -13,4 +13,4 @@
<y>0</y>
- <width>256</width>
- <height>316</height>
+ <width>269</width>
+ <height>317</height>
</rect>
@@ -67,3 +67,3 @@
<name>margin</name>
- <number>6</number>
+ <number>11</number>
</property>
@@ -71,3 +71,3 @@
<name>spacing</name>
- <number>3</number>
+ <number>6</number>
</property>
@@ -127,24 +127,2 @@
</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" >
@@ -209,2 +187,35 @@
</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>