author | harlekin <harlekin> | 2004-06-04 16:08:25 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-06-04 16:08:25 (UTC) |
commit | e3982ce0959fe630709aeba25f4c6d93df150ff5 (patch) (side-by-side diff) | |
tree | 8ed3dce7a96645d25a00f1819f6aa0e37bc0abc2 /core/settings/light-and-power/light.cpp | |
parent | 9f12abfa6b60232592aa15feea25bee28908f525 (diff) | |
download | opie-e3982ce0959fe630709aeba25f4c6d93df150ff5.zip opie-e3982ce0959fe630709aeba25f4c6d93df150ff5.tar.gz opie-e3982ce0959fe630709aeba25f4c6d93df150ff5.tar.bz2 |
default focus back on the brightness sliders, closes bug 1340
Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 424a64c..1c61787 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp @@ -115,24 +115,25 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) 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 ); } // light sensor auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); m_sensordata = config. readListEntry ( "LightSensorData", ';' ); config. setGroup ( "AC" ); @@ -171,27 +172,29 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) // warnings config. setGroup ( "Warnings" ); warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); m_resettimer = new QTimer ( this ); connect ( m_resettimer, SIGNAL( timeout()), this, SLOT( resetBacklight())); if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { tabs-> setCurrentPage ( 0 ); + brightness->setFocus(); } else { tabs-> setCurrentPage ( 1 ); + brightness_ac->setFocus(); } connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); connect ( brightness_ac, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); if (m_cres) { connect ( contrast, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); connect ( contrast_ac, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); } connect( frequency, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); connect( frequency_ac, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); connect( closeHingeAction, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); connect( closeHingeAction_ac, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); |