summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp16
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui14
2 files changed, 15 insertions, 15 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index d2618d9..bf94a21 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -80,3 +80,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
if ( config.readNumEntry("Dim",1) == 0 ) {
- interval_dim->setSpecialValueText( tr("never") );
+ interval_dim->setValue( 0 );
} else {
@@ -87,3 +87,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
if ( config.readNumEntry("LightOff",1) == 0 ) {
- interval_lightoff->setSpecialValueText( tr("never") );
+ interval_lightoff->setValue( 0 );
} else {
@@ -95,4 +95,4 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
- if ( config.readNumEntry("NoApm", 0) == 0 ) {
- interval_suspend->setSpecialValueText( tr("never") );
+ if ( config.readNumEntry("NoApm", 0 ) == 1 ) {
+ interval_suspend->setValue( 0 );
} else {
@@ -120,3 +120,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
if ( config.readNumEntry("Dim",1) == 0 ) {
- interval_dim_ac_3->setSpecialValueText( tr("never") );
+ interval_dim_ac_3->setValue( 0 );
} else {
@@ -127,3 +127,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
if ( config.readNumEntry("LightOff",1) == 0 ) {
- interval_lightoff_ac_3->setSpecialValueText( tr("never") );
+ interval_lightoff_ac_3->setValue( 0 );
} else {
@@ -136,4 +136,4 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
}
- if ( config.readNumEntry("NoApm", 0) == 0 ) {
- interval_suspend_ac_3->setSpecialValueText( tr("never") );
+ if ( config.readNumEntry("NoApm", 1) == 1 ) {
+ interval_suspend_ac_3->setValue( 0 );
} else {
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index effa460..f41e5a6 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -13,3 +13,3 @@
<y>0</y>
- <width>403</width>
+ <width>399</width>
<height>532</height>
@@ -152,3 +152,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>
@@ -212,3 +212,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>
@@ -243,3 +243,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>
@@ -595,3 +595,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>
@@ -644,3 +644,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>
@@ -686,3 +686,3 @@
<name>minValue</name>
- <number>10</number>
+ <number>0</number>
</property>