summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-23 07:17:35 (UTC)
committer llornkcor <llornkcor>2004-04-23 07:17:35 (UTC)
commit448732c964768b5be8677a95aa1f9b07bad9e8a2 (patch) (side-by-side diff)
tree9a42956b0f6153e1e4b188ee4f53827c5f663026
parentba10e43945b15753e0438cd0176cfa61d61c7391 (diff)
downloadopie-448732c964768b5be8677a95aa1f9b07bad9e8a2.zip
opie-448732c964768b5be8677a95aa1f9b07bad9e8a2.tar.gz
opie-448732c964768b5be8677a95aa1f9b07bad9e8a2.tar.bz2
doesnt make sense to turn light off before it dims for default
Diffstat (more/less context) (ignore 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 ebcc25c..d64a063 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -80,50 +80,50 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
QStrList freq = ODevice::inst()->allowedCpuFrequencies();
if ( freq.count() ) {
frequency->insertStrList( freq );
frequency_ac->insertStrList( freq );
} else {
frequencyLabel->hide();
frequency->hide();
frequencyLabel_ac->hide();
frequency_ac->hide();
}
// check whether to show the hinge action stuff
if ( !ODevice::inst()->hasHingeSensor() ) {
closeHingeLabel->hide();
closeHingeAction->hide();
closeHingeLabel_ac->hide();
closeHingeAction_ac->hide();
}
Config config ( "apm" );
config. setGroup ( "Battery" );
// battery spinboxes
- interval_dim-> setValue ( config. readNumEntry ( "Dim", 30 ));
- interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 20 ));
+ interval_dim-> setValue ( config. readNumEntry ( "Dim", 20 ));
+ interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 30 ));
interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 ));
// battery check and slider
LcdOffOnly->setChecked ( config. readBoolEntry ( "LcdOffOnly", false ));
// CPU frequency
frequency->setCurrentItem( config.readNumEntry("Freq", 0) );
// hinge action
closeHingeAction->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) );
int bright = config. readNumEntry ( "Brightness", 127 );
int contr = m_oldcontrast = config. readNumEntry ( "Contrast", 127 );
brightness-> setTickInterval ( QMAX( 16, 256 / m_bres ));
brightness-> setLineStep ( QMAX( 1, 256 / m_bres ));
brightness-> setPageStep ( QMAX( 1, 256 / m_bres ));
brightness-> setValue ( bright );
if (m_cres) {
contrast-> setTickInterval ( QMAX( 16, 256 / m_cres ));
contrast-> setLineStep ( QMAX( 1, 256 / m_cres ));
contrast-> setPageStep ( QMAX( 1, 256 / m_cres ));
contrast-> setValue ( contr );
}