From 63894d36a26675655a4f74721ea1c19fb5e3e84c Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 27 Oct 2002 18:17:54 +0000 Subject: other never handling --- (limited to 'core/settings/light-and-power') 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 @@ -78,14 +78,14 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) // 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 ); } @@ -93,8 +93,8 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) 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 ); } @@ -118,14 +118,14 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) // 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 ); } @@ -134,8 +134,8 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) 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 ); } 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 @@ -11,7 +11,7 @@ 0 0 - 403 + 399 532 @@ -150,7 +150,7 @@ minValue - 10 + 0 lineStep @@ -210,7 +210,7 @@ minValue - 10 + 0 lineStep @@ -241,7 +241,7 @@ minValue - 10 + 0 lineStep @@ -593,7 +593,7 @@ minValue - 10 + 0 lineStep @@ -642,7 +642,7 @@ minValue - 10 + 0 lineStep @@ -684,7 +684,7 @@ minValue - 10 + 0 lineStep -- cgit v0.9.0.2