summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 1c61787..d0ac878 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -159,35 +159,35 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
159 brightness_ac-> setValue ( bright ); 159 brightness_ac-> setValue ( bright );
160 160
161 if (m_cres) { 161 if (m_cres) {
162 contr = config. readNumEntry ( "Contrast", 127); 162 contr = config. readNumEntry ( "Contrast", 127);
163 contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres )); 163 contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres ));
164 contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres )); 164 contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres ));
165 contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres )); 165 contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres ));
166 contrast_ac-> setValue ( contr ); 166 contrast_ac-> setValue ( contr );
167 } 167 }
168 168
169 // light sensor 169 // light sensor
170 auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); 170 auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false ));
171 m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); 171 m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' );
172 172
173 // warnings 173 // warnings
174 config. setGroup ( "Warnings" ); 174 config. setGroup ( "Warnings" );
175 warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); 175 warnintervalBox-> setValue ( config. readNumEntry ( "check_interval", 10000 ) / 1000 );
176 lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); 176 lowSpinBox-> setValue ( config. readNumEntry ( "power_verylow", 10 ) );
177 criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); 177 criticalSpinBox-> setValue ( config. readNumEntry ( "power_critical", 5 ) );
178 178
179 m_resettimer = new QTimer ( this ); 179 m_resettimer = new QTimer ( this );
180 connect ( m_resettimer, SIGNAL( timeout()), this, SLOT( resetBacklight())); 180 connect ( m_resettimer, SIGNAL( timeout()), this, SLOT( resetBacklight()));
181 181
182 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { 182 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) {
183 tabs-> setCurrentPage ( 0 ); 183 tabs-> setCurrentPage ( 0 );
184 brightness->setFocus(); 184 brightness->setFocus();
185 } 185 }
186 else { 186 else {
187 tabs-> setCurrentPage ( 1 ); 187 tabs-> setCurrentPage ( 1 );
188 brightness_ac->setFocus(); 188 brightness_ac->setFocus();
189 } 189 }
190 190
191 connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); 191 connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int)));
192 connect ( brightness_ac, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); 192 connect ( brightness_ac, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int)));
193 if (m_cres) { 193 if (m_cres) {