summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-21 12:45:31 (UTC)
committer llornkcor <llornkcor>2002-07-21 12:45:31 (UTC)
commitedeab5f635166d88eee8135d982602a241240f40 (patch) (side-by-side diff)
tree6081d12cb81c17b660b43474c94d2ffe916ddb0a
parent76d7938ec6b89aa11f54f9fbdad40bb358b4886a (diff)
downloadopie-edeab5f635166d88eee8135d982602a241240f40.zip
opie-edeab5f635166d88eee8135d982602a241240f40.tar.gz
opie-edeab5f635166d88eee8135d982602a241240f40.tar.bz2
default dim time should be less than light off time
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index b56ae11..e959603 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -37,51 +37,51 @@
#include <qtextstream.h>
#include <qdatastream.h>
#include <qmessagebox.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qlistbox.h>
#include <qdir.h>
#if QT_VERSION >= 300
#include <qstylefactory.h>
#endif
extern int qpe_sysBrightnessSteps();
LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
: LightSettingsBase( parent, name, TRUE, fl )
{
// Not supported
auto_brightness->hide();
Config config( "qpe" );
config.setGroup( "Screensaver" );
int interval;
- interval = config.readNumEntry( "Interval_Dim", 30 );
+ interval = config.readNumEntry( "Interval_Dim", 20 );
interval_dim->setValue( interval );
- interval = config.readNumEntry( "Interval_LightOff", 20 );
+ interval = config.readNumEntry( "Interval_LightOff", 30 );
interval_lightoff->setValue( interval );
interval = config.readNumEntry( "Interval", 60 );
if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs)
interval_suspend->setValue( interval );
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);
brightness->setMaxValue( maxbright );
brightness->setTickInterval( QMAX(1,maxbright/16) );
brightness->setLineStep( QMAX(1,maxbright/16) );
brightness->setPageStep( QMAX(1,maxbright/16) );
brightness->setValue( (maxbright*255 - initbright*maxbright)/255 );
connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness()));
}
LightSettings::~LightSettings()
{
}
static void set_fl(int bright)