-rw-r--r-- | core/settings/light-and-power/light.cpp | 16 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 14 |
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 @@ -75,29 +75,29 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) config.setGroup( "Battery" ); int interval; // battery spinboxes interval = config.readNumEntry( "Interval_Dim", 20 ); if ( config.readNumEntry("Dim",1) == 0 ) { - interval_dim->setSpecialValueText( tr("never") ); + interval_dim->setValue( 0 ); } else { interval_dim->setValue( interval ); } interval = config.readNumEntry( "Interval_LightOff", 30 ); if ( config.readNumEntry("LightOff",1) == 0 ) { - interval_lightoff->setSpecialValueText( tr("never") ); + interval_lightoff->setValue( 0 ); } else { interval_lightoff->setValue( interval ); } interval = config.readNumEntry( "Interval", 60 ); if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) - if ( config.readNumEntry("NoApm", 0) == 0 ) { - interval_suspend->setSpecialValueText( tr("never") ); + if ( config.readNumEntry("NoApm", 0 ) == 1 ) { + interval_suspend->setValue( 0 ); } else { interval_suspend->setValue( interval ); } // battery check and slider LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); @@ -115,30 +115,30 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) config.setGroup( "AC" ); // ac spinboxes interval = config.readNumEntry( "Interval_Dim", 20 ); if ( config.readNumEntry("Dim",1) == 0 ) { - interval_dim_ac_3->setSpecialValueText( tr("never") ); + interval_dim_ac_3->setValue( 0 ); } else { interval_dim_ac_3->setValue( interval ); } interval = config.readNumEntry( "Interval_LightOff", 30 ); if ( config.readNumEntry("LightOff",1) == 0 ) { - interval_lightoff_ac_3->setSpecialValueText( tr("never") ); + interval_lightoff_ac_3->setValue( 0 ); } else { interval_lightoff_ac_3->setValue( interval ); } interval = config.readNumEntry( "Interval", 60 ); if ( interval > 3600 ) { interval /= 1000; // compatibility (was millisecs) } - 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 { interval_suspend_ac_3->setValue( interval ); } // ac check and slider LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 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 @@ -8,13 +8,13 @@ </property> <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> - <width>403</width> + <width>399</width> <height>532</height> </rect> </property> <property stdset="1"> <name>sizePolicy</name> <sizepolicy> @@ -147,13 +147,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> @@ -207,13 +207,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> @@ -238,13 +238,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> @@ -590,13 +590,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> @@ -639,13 +639,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> @@ -681,13 +681,13 @@ <property stdset="1"> <name>maxValue</name> <number>3600</number> </property> <property stdset="1"> <name>minValue</name> - <number>10</number> + <number>0</number> </property> <property stdset="1"> <name>lineStep</name> <number>10</number> </property> </widget> |