summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp3
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui17
2 files changed, 17 insertions, 3 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
@@ -124,6 +124,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
124 brightness-> setPageStep ( QMAX( 1, 256 / m_bres )); 124 brightness-> setPageStep ( QMAX( 1, 256 / m_bres ));
125 brightness-> setValue ( bright ); 125 brightness-> setValue ( bright );
126 126
127//
127 if (m_cres) { 128 if (m_cres) {
128 contrast-> setTickInterval ( QMAX( 16, 256 / m_cres )); 129 contrast-> setTickInterval ( QMAX( 16, 256 / m_cres ));
129 contrast-> setLineStep ( QMAX( 1, 256 / m_cres )); 130 contrast-> setLineStep ( QMAX( 1, 256 / m_cres ));
@@ -180,9 +181,11 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
180 181
181 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { 182 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) {
182 tabs-> setCurrentPage ( 0 ); 183 tabs-> setCurrentPage ( 0 );
184 brightness->setFocus();
183 } 185 }
184 else { 186 else {
185 tabs-> setCurrentPage ( 1 ); 187 tabs-> setCurrentPage ( 1 );
188 brightness_ac->setFocus();
186 } 189 }
187 190
188 connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); 191 connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int)));
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index 2af0331..1f1ff17 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -11,7 +11,7 @@
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>331</width> 14 <width>327</width>
15 <height>532</height> 15 <height>532</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
@@ -1360,14 +1360,16 @@
1360</connections> 1360</connections>
1361<tabstops> 1361<tabstops>
1362 <tabstop>brightness</tabstop> 1362 <tabstop>brightness</tabstop>
1363 <tabstop>brightness_ac</tabstop>
1364 <tabstop>tabs</tabstop>
1365 <tabstop>LcdOffOnly</tabstop>
1366 <tabstop>closeHingeAction</tabstop>
1363 <tabstop>interval_dim</tabstop> 1367 <tabstop>interval_dim</tabstop>
1364 <tabstop>interval_lightoff</tabstop> 1368 <tabstop>interval_lightoff</tabstop>
1365 <tabstop>interval_suspend</tabstop> 1369 <tabstop>interval_suspend</tabstop>
1366 <tabstop>LcdOffOnly</tabstop>
1367 <tabstop>auto_brightness</tabstop> 1370 <tabstop>auto_brightness</tabstop>
1368 <tabstop>CalibrateLightSensor</tabstop> 1371 <tabstop>CalibrateLightSensor</tabstop>
1369 <tabstop>brightness</tabstop> 1372 <tabstop>brightness</tabstop>
1370 <tabstop>tabs</tabstop>
1371 <tabstop>interval_lightoff</tabstop> 1373 <tabstop>interval_lightoff</tabstop>
1372 <tabstop>interval_suspend</tabstop> 1374 <tabstop>interval_suspend</tabstop>
1373 <tabstop>interval_dim</tabstop> 1375 <tabstop>interval_dim</tabstop>
@@ -1377,5 +1379,14 @@
1377 <tabstop>lowSpinBox</tabstop> 1379 <tabstop>lowSpinBox</tabstop>
1378 <tabstop>warnintervalBox</tabstop> 1380 <tabstop>warnintervalBox</tabstop>
1379 <tabstop>criticalSpinBox</tabstop> 1381 <tabstop>criticalSpinBox</tabstop>
1382 <tabstop>frequency</tabstop>
1383 <tabstop>contrast</tabstop>
1384 <tabstop>interval_lightoff_ac</tabstop>
1385 <tabstop>interval_suspend_ac</tabstop>
1386 <tabstop>interval_dim_ac</tabstop>
1387 <tabstop>frequency_ac</tabstop>
1388 <tabstop>closeHingeAction_ac</tabstop>
1389 <tabstop>contrast_ac</tabstop>
1390 <tabstop>auto_brightness_ac</tabstop>
1380</tabstops> 1391</tabstops>
1381</UI> 1392</UI>