summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-27 18:17:54 (UTC)
committer harlekin <harlekin>2002-10-27 18:17:54 (UTC)
commit63894d36a26675655a4f74721ea1c19fb5e3e84c (patch) (unidiff)
tree84336f7750ee018d975b7a00255dcf4dcdc51843
parent17888d7ee97ec67c3f8c0f69fa30930b5a634ace (diff)
downloadopie-63894d36a26675655a4f74721ea1c19fb5e3e84c.zip
opie-63894d36a26675655a4f74721ea1c19fb5e3e84c.tar.gz
opie-63894d36a26675655a4f74721ea1c19fb5e3e84c.tar.bz2
other never handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp16
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui14
2 files changed, 15 insertions, 15 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index d2618d9..bf94a21 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -1,288 +1,288 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21// redone by Maximilian Reiss <harlekin@handhelds.org> 21// redone by Maximilian Reiss <harlekin@handhelds.org>
22 22
23#include "settings.h" 23#include "settings.h"
24 24
25#include <qpe/global.h> 25#include <qpe/global.h>
26#include <qpe/fontmanager.h> 26#include <qpe/fontmanager.h>
27#include <qpe/config.h> 27#include <qpe/config.h>
28#include <qpe/applnk.h> 28#include <qpe/applnk.h>
29#include <qpe/qpeapplication.h> 29#include <qpe/qpeapplication.h>
30#include <qpe/power.h> 30#include <qpe/power.h>
31#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 31#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
32#include <qpe/qcopenvelope_qws.h> 32#include <qpe/qcopenvelope_qws.h>
33#endif 33#endif
34 34
35#include <qlabel.h> 35#include <qlabel.h>
36#include <qcheckbox.h> 36#include <qcheckbox.h>
37#include <qradiobutton.h> 37#include <qradiobutton.h>
38#include <qtabwidget.h> 38#include <qtabwidget.h>
39#include <qslider.h> 39#include <qslider.h>
40#include <qfile.h> 40#include <qfile.h>
41#include <qtextstream.h> 41#include <qtextstream.h>
42#include <qdatastream.h> 42#include <qdatastream.h>
43#include <qmessagebox.h> 43#include <qmessagebox.h>
44#include <qcombobox.h> 44#include <qcombobox.h>
45#include <qgroupbox.h> 45#include <qgroupbox.h>
46#include <qspinbox.h> 46#include <qspinbox.h>
47#include <qpushbutton.h> 47#include <qpushbutton.h>
48#include <qlistbox.h> 48#include <qlistbox.h>
49#include <qdir.h> 49#include <qdir.h>
50#if QT_VERSION >= 300 50#if QT_VERSION >= 300
51#include <qstylefactory.h> 51#include <qstylefactory.h>
52#endif 52#endif
53 53
54#include <opie/odevice.h> 54#include <opie/odevice.h>
55 55
56using namespace Opie; 56using namespace Opie;
57 57
58LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) 58LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
59 : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp ) 59 : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp )
60{ 60{
61 61
62 if ( ODevice::inst()->hasLightSensor() ) { 62 if ( ODevice::inst()->hasLightSensor() ) {
63 // Not supported yet - hide until implemented 63 // Not supported yet - hide until implemented
64 CalibrateLightSensor->setEnabled( false ); 64 CalibrateLightSensor->setEnabled( false );
65 CalibrateLightSensorAC->setEnabled( false ); 65 CalibrateLightSensorAC->setEnabled( false );
66 } else { 66 } else {
67 // if ipaq no need to show the sensor box 67 // if ipaq no need to show the sensor box
68 auto_brightness->hide(); 68 auto_brightness->hide();
69 CalibrateLightSensor->hide(); 69 CalibrateLightSensor->hide();
70 auto_brightness_ac_3->hide(); 70 auto_brightness_ac_3->hide();
71 CalibrateLightSensorAC->hide(); 71 CalibrateLightSensorAC->hide();
72 } 72 }
73 73
74 Config config( "apm" ); 74 Config config( "apm" );
75 config.setGroup( "Battery" ); 75 config.setGroup( "Battery" );
76 76
77 int interval; 77 int interval;
78 // battery spinboxes 78 // battery spinboxes
79 interval = config.readNumEntry( "Interval_Dim", 20 ); 79 interval = config.readNumEntry( "Interval_Dim", 20 );
80 if ( config.readNumEntry("Dim",1) == 0 ) { 80 if ( config.readNumEntry("Dim",1) == 0 ) {
81 interval_dim->setSpecialValueText( tr("never") ); 81 interval_dim->setValue( 0 );
82 } else { 82 } else {
83 interval_dim->setValue( interval ); 83 interval_dim->setValue( interval );
84 } 84 }
85 85
86 interval = config.readNumEntry( "Interval_LightOff", 30 ); 86 interval = config.readNumEntry( "Interval_LightOff", 30 );
87 if ( config.readNumEntry("LightOff",1) == 0 ) { 87 if ( config.readNumEntry("LightOff",1) == 0 ) {
88 interval_lightoff->setSpecialValueText( tr("never") ); 88 interval_lightoff->setValue( 0 );
89 } else { 89 } else {
90 interval_lightoff->setValue( interval ); 90 interval_lightoff->setValue( interval );
91 } 91 }
92 92
93 interval = config.readNumEntry( "Interval", 60 ); 93 interval = config.readNumEntry( "Interval", 60 );
94 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) 94 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs)
95 95
96 if ( config.readNumEntry("NoApm", 0) == 0 ) { 96 if ( config.readNumEntry("NoApm", 0 ) == 1 ) {
97 interval_suspend->setSpecialValueText( tr("never") ); 97 interval_suspend->setValue( 0 );
98 } else { 98 } else {
99 interval_suspend->setValue( interval ); 99 interval_suspend->setValue( interval );
100 } 100 }
101 101
102 // battery check and slider 102 // battery check and slider
103 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 103 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
104 int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); 104 int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( );
105 initbright = config.readNumEntry("Brightness",255); 105 initbright = config.readNumEntry("Brightness",255);
106 brightness->setMaxValue( maxbright ); 106 brightness->setMaxValue( maxbright );
107 brightness->setTickInterval( QMAX(1,maxbright/16) ); 107 brightness->setTickInterval( QMAX(1,maxbright/16) );
108 brightness->setLineStep( QMAX(1,maxbright/16) ); 108 brightness->setLineStep( QMAX(1,maxbright/16) );
109 brightness->setPageStep( QMAX(1,maxbright/16) ); 109 brightness->setPageStep( QMAX(1,maxbright/16) );
110 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); 110 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 );
111 111
112 // light sensor 112 // light sensor
113 auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); 113 auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 );
114 114
115 115
116 116
117 config.setGroup( "AC" ); 117 config.setGroup( "AC" );
118 // ac spinboxes 118 // ac spinboxes
119 interval = config.readNumEntry( "Interval_Dim", 20 ); 119 interval = config.readNumEntry( "Interval_Dim", 20 );
120 if ( config.readNumEntry("Dim",1) == 0 ) { 120 if ( config.readNumEntry("Dim",1) == 0 ) {
121 interval_dim_ac_3->setSpecialValueText( tr("never") ); 121 interval_dim_ac_3->setValue( 0 );
122 } else { 122 } else {
123 interval_dim_ac_3->setValue( interval ); 123 interval_dim_ac_3->setValue( interval );
124 } 124 }
125 125
126 interval = config.readNumEntry( "Interval_LightOff", 30 ); 126 interval = config.readNumEntry( "Interval_LightOff", 30 );
127 if ( config.readNumEntry("LightOff",1) == 0 ) { 127 if ( config.readNumEntry("LightOff",1) == 0 ) {
128 interval_lightoff_ac_3->setSpecialValueText( tr("never") ); 128 interval_lightoff_ac_3->setValue( 0 );
129 } else { 129 } else {
130 interval_lightoff_ac_3->setValue( interval ); 130 interval_lightoff_ac_3->setValue( interval );
131 } 131 }
132 132
133 interval = config.readNumEntry( "Interval", 60 ); 133 interval = config.readNumEntry( "Interval", 60 );
134 if ( interval > 3600 ) { 134 if ( interval > 3600 ) {
135 interval /= 1000; // compatibility (was millisecs) 135 interval /= 1000; // compatibility (was millisecs)
136 } 136 }
137 if ( config.readNumEntry("NoApm", 0) == 0 ) { 137 if ( config.readNumEntry("NoApm", 1) == 1 ) {
138 interval_suspend_ac_3->setSpecialValueText( tr("never") ); 138 interval_suspend_ac_3->setValue( 0 );
139 } else { 139 } else {
140 interval_suspend_ac_3->setValue( interval ); 140 interval_suspend_ac_3->setValue( interval );
141 } 141 }
142 142
143 // ac check and slider 143 // ac check and slider
144 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 144 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
145 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); 145 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( );
146 initbright_ac = config.readNumEntry("Brightness",255); 146 initbright_ac = config.readNumEntry("Brightness",255);
147 brightness_ac_3->setMaxValue( maxbright_ac ); 147 brightness_ac_3->setMaxValue( maxbright_ac );
148 brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); 148 brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) );
149 brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); 149 brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) );
150 brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); 150 brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) );
151 brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); 151 brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 );
152 152
153 // light sensor 153 // light sensor
154 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensor",0) != 0 ); 154 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensor",0) != 0 );
155 155
156 156
157 //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); 157 //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) );
158 //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); 158 //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) );
159 //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; 159 //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ;
160 //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); 160 //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) );
161 161
162 // advanced settings 162 // advanced settings
163 config.setGroup( "Warnings" ); 163 config.setGroup( "Warnings" );
164 warnintervalBox->setValue( config.readNumEntry("checkinterval", 10000)/1000 ); 164 warnintervalBox->setValue( config.readNumEntry("checkinterval", 10000)/1000 );
165 lowSpinBox->setValue( config.readNumEntry("powerverylow", 10 ) ); 165 lowSpinBox->setValue( config.readNumEntry("powerverylow", 10 ) );
166 criticalSpinBox->setValue( config.readNumEntry("powercritical", 5 ) ); 166 criticalSpinBox->setValue( config.readNumEntry("powercritical", 5 ) );
167 167
168 connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); 168 connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) );
169 connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); 169 connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) );
170} 170}
171 171
172LightSettings::~LightSettings() { 172LightSettings::~LightSettings() {
173} 173}
174 174
175void LightSettings::slotSliderTicks( int steps ) { 175void LightSettings::slotSliderTicks( int steps ) {
176// LightMinValueSlider->setTickInterval( steps ); 176// LightMinValueSlider->setTickInterval( steps );
177} 177}
178 178
179static void set_fl(int bright) 179static void set_fl(int bright)
180{ 180{
181 qDebug ( QString( "Brightness" ).arg( bright ) ); 181 qDebug ( QString( "Brightness" ).arg( bright ) );
182 QCopEnvelope e("QPE/System", "setBacklight(int)" ); 182 QCopEnvelope e("QPE/System", "setBacklight(int)" );
183 e << bright; 183 e << bright;
184} 184}
185 185
186void LightSettings::reject() 186void LightSettings::reject()
187{ 187{
188 set_fl(initbright); 188 set_fl(initbright);
189 QDialog::reject(); 189 QDialog::reject();
190} 190}
191 191
192void LightSettings::accept() 192void LightSettings::accept()
193{ 193{
194 if ( qApp->focusWidget() ) { 194 if ( qApp->focusWidget() ) {
195 qApp->focusWidget()->clearFocus(); 195 qApp->focusWidget()->clearFocus();
196 } 196 }
197 197
198 applyBrightness(); 198 applyBrightness();
199 199
200 // bat 200 // bat
201 int i_dim = ( !( interval_dim->specialValueText() == tr("never") ) ? interval_dim->value() : 0); 201 int i_dim = ( !( interval_dim->specialValueText() == tr("never") ) ? interval_dim->value() : 0);
202 int i_lightoff = ( !( interval_lightoff->specialValueText() == tr("never") ) ? interval_lightoff->value() : 0); 202 int i_lightoff = ( !( interval_lightoff->specialValueText() == tr("never") ) ? interval_lightoff->value() : 0);
203 int i_suspend = interval_suspend->value(); 203 int i_suspend = interval_suspend->value();
204 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); 204 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" );
205 e << i_dim << i_lightoff << i_suspend; 205 e << i_dim << i_lightoff << i_suspend;
206 206
207 // ac 207 // ac
208 int i_dim_ac = ( !( interval_dim_ac_3->specialValueText() == tr("never") ) ? interval_dim_ac_3->value() : 0); 208 int i_dim_ac = ( !( interval_dim_ac_3->specialValueText() == tr("never") ) ? interval_dim_ac_3->value() : 0);
209 int i_lightoff_ac = ( !( interval_lightoff_ac_3->specialValueText() == tr("never") ) ? interval_lightoff_ac_3->value() : 0); 209 int i_lightoff_ac = ( !( interval_lightoff_ac_3->specialValueText() == tr("never") ) ? interval_lightoff_ac_3->value() : 0);
210 int i_suspend_ac = interval_suspend_ac_3->value(); 210 int i_suspend_ac = interval_suspend_ac_3->value();
211 QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); 211 QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" );
212 e << i_dim_ac << i_lightoff_ac << i_suspend_ac; 212 e << i_dim_ac << i_lightoff_ac << i_suspend_ac;
213 213
214 Config config( "apm" ); 214 Config config( "apm" );
215 215
216 config.setGroup( "Battery" ); 216 config.setGroup( "Battery" );
217 217
218 // bat 218 // bat
219 config.writeEntry( "Dim", interval_dim->specialValueText() == tr("never") ); 219 config.writeEntry( "Dim", interval_dim->specialValueText() == tr("never") );
220 config.writeEntry( "LightOff", interval_lightoff->specialValueText() == tr("never") ); 220 config.writeEntry( "LightOff", interval_lightoff->specialValueText() == tr("never") );
221 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); 221 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() );
222 config.writeEntry( "NoAPm", interval_suspend->specialValueText() == tr("never") ); 222 config.writeEntry( "NoAPm", interval_suspend->specialValueText() == tr("never") );
223 config.writeEntry( "Interval_Dim", interval_dim->value() ); 223 config.writeEntry( "Interval_Dim", interval_dim->value() );
224 config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); 224 config.writeEntry( "Interval_LightOff", interval_lightoff->value() );
225 config.writeEntry( "Interval", interval_suspend->value() ); 225 config.writeEntry( "Interval", interval_suspend->value() );
226 config.writeEntry( "Brightness", 226 config.writeEntry( "Brightness",
227 ( brightness->value() ) * 255 / brightness->maxValue() ); 227 ( brightness->value() ) * 255 / brightness->maxValue() );
228 228
229 // ac 229 // ac
230 config.setGroup( "AC" ); 230 config.setGroup( "AC" );
231 config.writeEntry( "Dim", interval_dim_ac_3->specialValueText() == tr("never") ); 231 config.writeEntry( "Dim", interval_dim_ac_3->specialValueText() == tr("never") );
232 config.writeEntry( "LightOff", interval_lightoff_ac_3->specialValueText() == tr("never") ); 232 config.writeEntry( "LightOff", interval_lightoff_ac_3->specialValueText() == tr("never") );
233 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly_2_3->isChecked() ); 233 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly_2_3->isChecked() );
234 config.writeEntry( "NoAPm", interval_suspend_ac_3->specialValueText() == tr("never") ); 234 config.writeEntry( "NoAPm", interval_suspend_ac_3->specialValueText() == tr("never") );
235 config.writeEntry( "Interval_Dim", interval_dim_ac_3->value() ); 235 config.writeEntry( "Interval_Dim", interval_dim_ac_3->value() );
236 config.writeEntry( "Interval_LightOff", interval_lightoff_ac_3->value() ); 236 config.writeEntry( "Interval_LightOff", interval_lightoff_ac_3->value() );
237 config.writeEntry( "Interval", interval_suspend_ac_3->value() ); 237 config.writeEntry( "Interval", interval_suspend_ac_3->value() );
238 config.writeEntry( "Brightness", 238 config.writeEntry( "Brightness",
239 ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() ); 239 ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() );
240 240
241 241
242 // only make light sensor stuff appear if the unit has a sensor 242 // only make light sensor stuff appear if the unit has a sensor
243 if ( ODevice::inst()->hasLightSensor() ) { 243 if ( ODevice::inst()->hasLightSensor() ) {
244 config.setGroup( "lightsensor" ); 244 config.setGroup( "lightsensor" );
245 config.setGroup( "Battery" ); 245 config.setGroup( "Battery" );
246 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); 246 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() );
247 config.setGroup( "AC" ); 247 config.setGroup( "AC" );
248 config.writeEntry( "LightSensor", (int)auto_brightness_ac_3->isChecked() ); 248 config.writeEntry( "LightSensor", (int)auto_brightness_ac_3->isChecked() );
249 //config.writeEntry( "Steps", LightStepSpin->value() ); 249 //config.writeEntry( "Steps", LightStepSpin->value() );
250 //onfig.writeEntry( "MinValue", LightMinValueSlider->value() ); 250 //onfig.writeEntry( "MinValue", LightMinValueSlider->value() );
251 //config.writeEntry( "Shift", LightShiftSpin->value() ); 251 //config.writeEntry( "Shift", LightShiftSpin->value() );
252 } 252 }
253 253
254 254
255 // advanced 255 // advanced
256 config.setGroup( "Warnings" ); 256 config.setGroup( "Warnings" );
257 config.writeEntry( "check_interval", warnintervalBox->value()*1000 ); 257 config.writeEntry( "check_interval", warnintervalBox->value()*1000 );
258 config.writeEntry( "power_verylow", lowSpinBox->value() ); 258 config.writeEntry( "power_verylow", lowSpinBox->value() );
259 config.writeEntry( "power_critical", criticalSpinBox->value() ); 259 config.writeEntry( "power_critical", criticalSpinBox->value() );
260 QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); 260 QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()");
261 261
262 config.write(); 262 config.write();
263 263
264 QDialog::accept(); 264 QDialog::accept();
265} 265}
266 266
267void LightSettings::applyBrightness() 267void LightSettings::applyBrightness()
268{ 268{
269 if ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) { 269 if ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) {
270 int bright = ( brightness->value() ) * 255 / brightness->maxValue(); 270 int bright = ( brightness->value() ) * 255 / brightness->maxValue();
271 set_fl(bright); 271 set_fl(bright);
272 } 272 }
273} 273}
274 274
275void LightSettings::applyBrightnessAC() 275void LightSettings::applyBrightnessAC()
276{ 276{
277 // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting 277 // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting
278 if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { 278 if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) {
279 int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); 279 int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue();
280 set_fl(bright); 280 set_fl(bright);
281 } 281 }
282} 282}
283 283
284void LightSettings::done(int r) 284void LightSettings::done(int r)
285{ 285{
286 QDialog::done(r); 286 QDialog::done(r);
287 close(); 287 close();
288} 288}
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index effa460..f41e5a6 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -1,1071 +1,1071 @@
1<!DOCTYPE UI><UI> 1<!DOCTYPE UI><UI>
2<class>LightSettingsBase</class> 2<class>LightSettingsBase</class>
3<widget> 3<widget>
4 <class>QDialog</class> 4 <class>QDialog</class>
5 <property stdset="1"> 5 <property stdset="1">
6 <name>name</name> 6 <name>name</name>
7 <cstring>LightSettingsBase</cstring> 7 <cstring>LightSettingsBase</cstring>
8 </property> 8 </property>
9 <property stdset="1"> 9 <property stdset="1">
10 <name>geometry</name> 10 <name>geometry</name>
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>403</width> 14 <width>399</width>
15 <height>532</height> 15 <height>532</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <property stdset="1"> 18 <property stdset="1">
19 <name>sizePolicy</name> 19 <name>sizePolicy</name>
20 <sizepolicy> 20 <sizepolicy>
21 <hsizetype>7</hsizetype> 21 <hsizetype>7</hsizetype>
22 <vsizetype>5</vsizetype> 22 <vsizetype>5</vsizetype>
23 </sizepolicy> 23 </sizepolicy>
24 </property> 24 </property>
25 <property stdset="1"> 25 <property stdset="1">
26 <name>caption</name> 26 <name>caption</name>
27 <string>Light and Power Settings</string> 27 <string>Light and Power Settings</string>
28 </property> 28 </property>
29 <property stdset="1"> 29 <property stdset="1">
30 <name>sizeGripEnabled</name> 30 <name>sizeGripEnabled</name>
31 <bool>false</bool> 31 <bool>false</bool>
32 </property> 32 </property>
33 <property> 33 <property>
34 <name>layoutMargin</name> 34 <name>layoutMargin</name>
35 </property> 35 </property>
36 <property> 36 <property>
37 <name>layoutSpacing</name> 37 <name>layoutSpacing</name>
38 </property> 38 </property>
39 <vbox> 39 <vbox>
40 <property stdset="1"> 40 <property stdset="1">
41 <name>margin</name> 41 <name>margin</name>
42 <number>3</number> 42 <number>3</number>
43 </property> 43 </property>
44 <property stdset="1"> 44 <property stdset="1">
45 <name>spacing</name> 45 <name>spacing</name>
46 <number>3</number> 46 <number>3</number>
47 </property> 47 </property>
48 <widget> 48 <widget>
49 <class>QTabWidget</class> 49 <class>QTabWidget</class>
50 <property stdset="1"> 50 <property stdset="1">
51 <name>name</name> 51 <name>name</name>
52 <cstring>TabWidget3</cstring> 52 <cstring>TabWidget3</cstring>
53 </property> 53 </property>
54 <property> 54 <property>
55 <name>layoutMargin</name> 55 <name>layoutMargin</name>
56 </property> 56 </property>
57 <property> 57 <property>
58 <name>layoutSpacing</name> 58 <name>layoutSpacing</name>
59 </property> 59 </property>
60 <widget> 60 <widget>
61 <class>QWidget</class> 61 <class>QWidget</class>
62 <property stdset="1"> 62 <property stdset="1">
63 <name>name</name> 63 <name>name</name>
64 <cstring>tab</cstring> 64 <cstring>tab</cstring>
65 </property> 65 </property>
66 <attribute> 66 <attribute>
67 <name>title</name> 67 <name>title</name>
68 <string>on Battery</string> 68 <string>on Battery</string>
69 </attribute> 69 </attribute>
70 <vbox> 70 <vbox>
71 <property stdset="1"> 71 <property stdset="1">
72 <name>margin</name> 72 <name>margin</name>
73 <number>3</number> 73 <number>3</number>
74 </property> 74 </property>
75 <property stdset="1"> 75 <property stdset="1">
76 <name>spacing</name> 76 <name>spacing</name>
77 <number>3</number> 77 <number>3</number>
78 </property> 78 </property>
79 <widget> 79 <widget>
80 <class>QGroupBox</class> 80 <class>QGroupBox</class>
81 <property stdset="1"> 81 <property stdset="1">
82 <name>name</name> 82 <name>name</name>
83 <cstring>GroupBox3</cstring> 83 <cstring>GroupBox3</cstring>
84 </property> 84 </property>
85 <property stdset="1"> 85 <property stdset="1">
86 <name>enabled</name> 86 <name>enabled</name>
87 <bool>true</bool> 87 <bool>true</bool>
88 </property> 88 </property>
89 <property stdset="1"> 89 <property stdset="1">
90 <name>title</name> 90 <name>title</name>
91 <string>General Settings</string> 91 <string>General Settings</string>
92 </property> 92 </property>
93 <property> 93 <property>
94 <name>layoutMargin</name> 94 <name>layoutMargin</name>
95 </property> 95 </property>
96 <property> 96 <property>
97 <name>layoutSpacing</name> 97 <name>layoutSpacing</name>
98 </property> 98 </property>
99 <vbox> 99 <vbox>
100 <property stdset="1"> 100 <property stdset="1">
101 <name>margin</name> 101 <name>margin</name>
102 <number>3</number> 102 <number>3</number>
103 </property> 103 </property>
104 <property stdset="1"> 104 <property stdset="1">
105 <name>spacing</name> 105 <name>spacing</name>
106 <number>3</number> 106 <number>3</number>
107 </property> 107 </property>
108 <widget> 108 <widget>
109 <class>QLayoutWidget</class> 109 <class>QLayoutWidget</class>
110 <property stdset="1"> 110 <property stdset="1">
111 <name>name</name> 111 <name>name</name>
112 <cstring>Layout11</cstring> 112 <cstring>Layout11</cstring>
113 </property> 113 </property>
114 <property> 114 <property>
115 <name>layoutMargin</name> 115 <name>layoutMargin</name>
116 </property> 116 </property>
117 <property> 117 <property>
118 <name>layoutSpacing</name> 118 <name>layoutSpacing</name>
119 </property> 119 </property>
120 <grid> 120 <grid>
121 <property stdset="1"> 121 <property stdset="1">
122 <name>margin</name> 122 <name>margin</name>
123 <number>3</number> 123 <number>3</number>
124 </property> 124 </property>
125 <property stdset="1"> 125 <property stdset="1">
126 <name>spacing</name> 126 <name>spacing</name>
127 <number>3</number> 127 <number>3</number>
128 </property> 128 </property>
129 <widget row="1" column="1" > 129 <widget row="1" column="1" >
130 <class>QSpinBox</class> 130 <class>QSpinBox</class>
131 <property stdset="1"> 131 <property stdset="1">
132 <name>name</name> 132 <name>name</name>
133 <cstring>interval_lightoff</cstring> 133 <cstring>interval_lightoff</cstring>
134 </property> 134 </property>
135 <property stdset="1"> 135 <property stdset="1">
136 <name>suffix</name> 136 <name>suffix</name>
137 <string> sec</string> 137 <string> sec</string>
138 </property> 138 </property>
139 <property stdset="1"> 139 <property stdset="1">
140 <name>specialValueText</name> 140 <name>specialValueText</name>
141 <string>never</string> 141 <string>never</string>
142 </property> 142 </property>
143 <property stdset="1"> 143 <property stdset="1">
144 <name>buttonSymbols</name> 144 <name>buttonSymbols</name>
145 <enum>PlusMinus</enum> 145 <enum>PlusMinus</enum>
146 </property> 146 </property>
147 <property stdset="1"> 147 <property stdset="1">
148 <name>maxValue</name> 148 <name>maxValue</name>
149 <number>3600</number> 149 <number>3600</number>
150 </property> 150 </property>
151 <property stdset="1"> 151 <property stdset="1">
152 <name>minValue</name> 152 <name>minValue</name>
153 <number>10</number> 153 <number>0</number>
154 </property> 154 </property>
155 <property stdset="1"> 155 <property stdset="1">
156 <name>lineStep</name> 156 <name>lineStep</name>
157 <number>10</number> 157 <number>10</number>
158 </property> 158 </property>
159 </widget> 159 </widget>
160 <widget row="1" column="0" > 160 <widget row="1" column="0" >
161 <class>QLabel</class> 161 <class>QLabel</class>
162 <property stdset="1"> 162 <property stdset="1">
163 <name>name</name> 163 <name>name</name>
164 <cstring>TextLabel2_2</cstring> 164 <cstring>TextLabel2_2</cstring>
165 </property> 165 </property>
166 <property stdset="1"> 166 <property stdset="1">
167 <name>text</name> 167 <name>text</name>
168 <string>Light off after</string> 168 <string>Light off after</string>
169 </property> 169 </property>
170 </widget> 170 </widget>
171 <widget row="0" column="0" > 171 <widget row="0" column="0" >
172 <class>QLabel</class> 172 <class>QLabel</class>
173 <property stdset="1"> 173 <property stdset="1">
174 <name>name</name> 174 <name>name</name>
175 <cstring>TextLabel1_3</cstring> 175 <cstring>TextLabel1_3</cstring>
176 </property> 176 </property>
177 <property stdset="1"> 177 <property stdset="1">
178 <name>sizePolicy</name> 178 <name>sizePolicy</name>
179 <sizepolicy> 179 <sizepolicy>
180 <hsizetype>7</hsizetype> 180 <hsizetype>7</hsizetype>
181 <vsizetype>1</vsizetype> 181 <vsizetype>1</vsizetype>
182 </sizepolicy> 182 </sizepolicy>
183 </property> 183 </property>
184 <property stdset="1"> 184 <property stdset="1">
185 <name>text</name> 185 <name>text</name>
186 <string>Dim light after</string> 186 <string>Dim light after</string>
187 </property> 187 </property>
188 </widget> 188 </widget>
189 <widget row="0" column="1" > 189 <widget row="0" column="1" >
190 <class>QSpinBox</class> 190 <class>QSpinBox</class>
191 <property stdset="1"> 191 <property stdset="1">
192 <name>name</name> 192 <name>name</name>
193 <cstring>interval_dim</cstring> 193 <cstring>interval_dim</cstring>
194 </property> 194 </property>
195 <property stdset="1"> 195 <property stdset="1">
196 <name>suffix</name> 196 <name>suffix</name>
197 <string> sec</string> 197 <string> sec</string>
198 </property> 198 </property>
199 <property stdset="1"> 199 <property stdset="1">
200 <name>specialValueText</name> 200 <name>specialValueText</name>
201 <string>never</string> 201 <string>never</string>
202 </property> 202 </property>
203 <property stdset="1"> 203 <property stdset="1">
204 <name>buttonSymbols</name> 204 <name>buttonSymbols</name>
205 <enum>PlusMinus</enum> 205 <enum>PlusMinus</enum>
206 </property> 206 </property>
207 <property stdset="1"> 207 <property stdset="1">
208 <name>maxValue</name> 208 <name>maxValue</name>
209 <number>3600</number> 209 <number>3600</number>
210 </property> 210 </property>
211 <property stdset="1"> 211 <property stdset="1">
212 <name>minValue</name> 212 <name>minValue</name>
213 <number>10</number> 213 <number>0</number>
214 </property> 214 </property>
215 <property stdset="1"> 215 <property stdset="1">
216 <name>lineStep</name> 216 <name>lineStep</name>
217 <number>10</number> 217 <number>10</number>
218 </property> 218 </property>
219 </widget> 219 </widget>
220 <widget row="2" column="1" > 220 <widget row="2" column="1" >
221 <class>QSpinBox</class> 221 <class>QSpinBox</class>
222 <property stdset="1"> 222 <property stdset="1">
223 <name>name</name> 223 <name>name</name>
224 <cstring>interval_suspend</cstring> 224 <cstring>interval_suspend</cstring>
225 </property> 225 </property>
226 <property stdset="1"> 226 <property stdset="1">
227 <name>suffix</name> 227 <name>suffix</name>
228 <string> sec</string> 228 <string> sec</string>
229 </property> 229 </property>
230 <property stdset="1"> 230 <property stdset="1">
231 <name>specialValueText</name> 231 <name>specialValueText</name>
232 <string>never</string> 232 <string>never</string>
233 </property> 233 </property>
234 <property stdset="1"> 234 <property stdset="1">
235 <name>buttonSymbols</name> 235 <name>buttonSymbols</name>
236 <enum>PlusMinus</enum> 236 <enum>PlusMinus</enum>
237 </property> 237 </property>
238 <property stdset="1"> 238 <property stdset="1">
239 <name>maxValue</name> 239 <name>maxValue</name>
240 <number>3600</number> 240 <number>3600</number>
241 </property> 241 </property>
242 <property stdset="1"> 242 <property stdset="1">
243 <name>minValue</name> 243 <name>minValue</name>
244 <number>10</number> 244 <number>0</number>
245 </property> 245 </property>
246 <property stdset="1"> 246 <property stdset="1">
247 <name>lineStep</name> 247 <name>lineStep</name>
248 <number>10</number> 248 <number>10</number>
249 </property> 249 </property>
250 </widget> 250 </widget>
251 <widget row="2" column="0" > 251 <widget row="2" column="0" >
252 <class>QLabel</class> 252 <class>QLabel</class>
253 <property stdset="1"> 253 <property stdset="1">
254 <name>name</name> 254 <name>name</name>
255 <cstring>TextLabel1_2</cstring> 255 <cstring>TextLabel1_2</cstring>
256 </property> 256 </property>
257 <property stdset="1"> 257 <property stdset="1">
258 <name>text</name> 258 <name>text</name>
259 <string>Suspend after</string> 259 <string>Suspend after</string>
260 </property> 260 </property>
261 </widget> 261 </widget>
262 </grid> 262 </grid>
263 </widget> 263 </widget>
264 <widget> 264 <widget>
265 <class>QCheckBox</class> 265 <class>QCheckBox</class>
266 <property stdset="1"> 266 <property stdset="1">
267 <name>name</name> 267 <name>name</name>
268 <cstring>LcdOffOnly</cstring> 268 <cstring>LcdOffOnly</cstring>
269 </property> 269 </property>
270 <property stdset="1"> 270 <property stdset="1">
271 <name>text</name> 271 <name>text</name>
272 <string>Deactivate LCD only (does not suspend)</string> 272 <string>Deactivate LCD only (does not suspend)</string>
273 </property> 273 </property>
274 </widget> 274 </widget>
275 </vbox> 275 </vbox>
276 </widget> 276 </widget>
277 <widget> 277 <widget>
278 <class>QGroupBox</class> 278 <class>QGroupBox</class>
279 <property stdset="1"> 279 <property stdset="1">
280 <name>name</name> 280 <name>name</name>
281 <cstring>GroupBox9</cstring> 281 <cstring>GroupBox9</cstring>
282 </property> 282 </property>
283 <property stdset="1"> 283 <property stdset="1">
284 <name>title</name> 284 <name>title</name>
285 <string>Backlight</string> 285 <string>Backlight</string>
286 </property> 286 </property>
287 <property> 287 <property>
288 <name>layoutMargin</name> 288 <name>layoutMargin</name>
289 </property> 289 </property>
290 <property> 290 <property>
291 <name>layoutSpacing</name> 291 <name>layoutSpacing</name>
292 </property> 292 </property>
293 <vbox> 293 <vbox>
294 <property stdset="1"> 294 <property stdset="1">
295 <name>margin</name> 295 <name>margin</name>
296 <number>3</number> 296 <number>3</number>
297 </property> 297 </property>
298 <property stdset="1"> 298 <property stdset="1">
299 <name>spacing</name> 299 <name>spacing</name>
300 <number>3</number> 300 <number>3</number>
301 </property> 301 </property>
302 <widget> 302 <widget>
303 <class>QSlider</class> 303 <class>QSlider</class>
304 <property stdset="1"> 304 <property stdset="1">
305 <name>name</name> 305 <name>name</name>
306 <cstring>brightness</cstring> 306 <cstring>brightness</cstring>
307 </property> 307 </property>
308 <property stdset="1"> 308 <property stdset="1">
309 <name>maxValue</name> 309 <name>maxValue</name>
310 <number>255</number> 310 <number>255</number>
311 </property> 311 </property>
312 <property stdset="1"> 312 <property stdset="1">
313 <name>lineStep</name> 313 <name>lineStep</name>
314 <number>1</number> 314 <number>1</number>
315 </property> 315 </property>
316 <property stdset="1"> 316 <property stdset="1">
317 <name>pageStep</name> 317 <name>pageStep</name>
318 <number>16</number> 318 <number>16</number>
319 </property> 319 </property>
320 <property stdset="1"> 320 <property stdset="1">
321 <name>tracking</name> 321 <name>tracking</name>
322 <bool>true</bool> 322 <bool>true</bool>
323 </property> 323 </property>
324 <property stdset="1"> 324 <property stdset="1">
325 <name>orientation</name> 325 <name>orientation</name>
326 <enum>Horizontal</enum> 326 <enum>Horizontal</enum>
327 </property> 327 </property>
328 <property stdset="1"> 328 <property stdset="1">
329 <name>tickmarks</name> 329 <name>tickmarks</name>
330 <enum>Right</enum> 330 <enum>Right</enum>
331 </property> 331 </property>
332 <property stdset="1"> 332 <property stdset="1">
333 <name>tickInterval</name> 333 <name>tickInterval</name>
334 <number>32</number> 334 <number>32</number>
335 </property> 335 </property>
336 <property> 336 <property>
337 <name>whatsThis</name> 337 <name>whatsThis</name>
338 <string>set a fix value for backlight</string> 338 <string>set a fix value for backlight</string>
339 </property> 339 </property>
340 </widget> 340 </widget>
341 <widget> 341 <widget>
342 <class>QLayoutWidget</class> 342 <class>QLayoutWidget</class>
343 <property stdset="1"> 343 <property stdset="1">
344 <name>name</name> 344 <name>name</name>
345 <cstring>Layout10</cstring> 345 <cstring>Layout10</cstring>
346 </property> 346 </property>
347 <hbox> 347 <hbox>
348 <property stdset="1"> 348 <property stdset="1">
349 <name>margin</name> 349 <name>margin</name>
350 <number>0</number> 350 <number>0</number>
351 </property> 351 </property>
352 <property stdset="1"> 352 <property stdset="1">
353 <name>spacing</name> 353 <name>spacing</name>
354 <number>6</number> 354 <number>6</number>
355 </property> 355 </property>
356 <widget> 356 <widget>
357 <class>QLabel</class> 357 <class>QLabel</class>
358 <property stdset="1"> 358 <property stdset="1">
359 <name>name</name> 359 <name>name</name>
360 <cstring>PixmapLabel2</cstring> 360 <cstring>PixmapLabel2</cstring>
361 </property> 361 </property>
362 <property stdset="1"> 362 <property stdset="1">
363 <name>pixmap</name> 363 <name>pixmap</name>
364 <pixmap>image0</pixmap> 364 <pixmap>image0</pixmap>
365 </property> 365 </property>
366 <property stdset="1"> 366 <property stdset="1">
367 <name>scaledContents</name> 367 <name>scaledContents</name>
368 <bool>false</bool> 368 <bool>false</bool>
369 </property> 369 </property>
370 </widget> 370 </widget>
371 <widget> 371 <widget>
372 <class>QLabel</class> 372 <class>QLabel</class>
373 <property stdset="1"> 373 <property stdset="1">
374 <name>name</name> 374 <name>name</name>
375 <cstring>TextLabel4</cstring> 375 <cstring>TextLabel4</cstring>
376 </property> 376 </property>
377 <property stdset="1"> 377 <property stdset="1">
378 <name>text</name> 378 <name>text</name>
379 <string>Off</string> 379 <string>Off</string>
380 </property> 380 </property>
381 </widget> 381 </widget>
382 <spacer> 382 <spacer>
383 <property> 383 <property>
384 <name>name</name> 384 <name>name</name>
385 <cstring>Spacer2</cstring> 385 <cstring>Spacer2</cstring>
386 </property> 386 </property>
387 <property stdset="1"> 387 <property stdset="1">
388 <name>orientation</name> 388 <name>orientation</name>
389 <enum>Horizontal</enum> 389 <enum>Horizontal</enum>
390 </property> 390 </property>
391 <property stdset="1"> 391 <property stdset="1">
392 <name>sizeType</name> 392 <name>sizeType</name>
393 <enum>Expanding</enum> 393 <enum>Expanding</enum>
394 </property> 394 </property>
395 <property> 395 <property>
396 <name>sizeHint</name> 396 <name>sizeHint</name>
397 <size> 397 <size>
398 <width>20</width> 398 <width>20</width>
399 <height>20</height> 399 <height>20</height>
400 </size> 400 </size>
401 </property> 401 </property>
402 </spacer> 402 </spacer>
403 <widget> 403 <widget>
404 <class>QLabel</class> 404 <class>QLabel</class>
405 <property stdset="1"> 405 <property stdset="1">
406 <name>name</name> 406 <name>name</name>
407 <cstring>TextLabel5</cstring> 407 <cstring>TextLabel5</cstring>
408 </property> 408 </property>
409 <property stdset="1"> 409 <property stdset="1">
410 <name>text</name> 410 <name>text</name>
411 <string>Full</string> 411 <string>Full</string>
412 </property> 412 </property>
413 </widget> 413 </widget>
414 <widget> 414 <widget>
415 <class>QLabel</class> 415 <class>QLabel</class>
416 <property stdset="1"> 416 <property stdset="1">
417 <name>name</name> 417 <name>name</name>
418 <cstring>PixmapLabel1</cstring> 418 <cstring>PixmapLabel1</cstring>
419 </property> 419 </property>
420 <property stdset="1"> 420 <property stdset="1">
421 <name>pixmap</name> 421 <name>pixmap</name>
422 <pixmap>image1</pixmap> 422 <pixmap>image1</pixmap>
423 </property> 423 </property>
424 <property stdset="1"> 424 <property stdset="1">
425 <name>scaledContents</name> 425 <name>scaledContents</name>
426 <bool>false</bool> 426 <bool>false</bool>
427 </property> 427 </property>
428 </widget> 428 </widget>
429 </hbox> 429 </hbox>
430 </widget> 430 </widget>
431 <widget> 431 <widget>
432 <class>QLayoutWidget</class> 432 <class>QLayoutWidget</class>
433 <property stdset="1"> 433 <property stdset="1">
434 <name>name</name> 434 <name>name</name>
435 <cstring>Layout9</cstring> 435 <cstring>Layout9</cstring>
436 </property> 436 </property>
437 <hbox> 437 <hbox>
438 <property stdset="1"> 438 <property stdset="1">
439 <name>margin</name> 439 <name>margin</name>
440 <number>0</number> 440 <number>0</number>
441 </property> 441 </property>
442 <property stdset="1"> 442 <property stdset="1">
443 <name>spacing</name> 443 <name>spacing</name>
444 <number>6</number> 444 <number>6</number>
445 </property> 445 </property>
446 <widget> 446 <widget>
447 <class>QCheckBox</class> 447 <class>QCheckBox</class>
448 <property stdset="1"> 448 <property stdset="1">
449 <name>name</name> 449 <name>name</name>
450 <cstring>auto_brightness</cstring> 450 <cstring>auto_brightness</cstring>
451 </property> 451 </property>
452 <property stdset="1"> 452 <property stdset="1">
453 <name>text</name> 453 <name>text</name>
454 <string>Use Light Sensor</string> 454 <string>Use Light Sensor</string>
455 </property> 455 </property>
456 <property> 456 <property>
457 <name>whatsThis</name> 457 <name>whatsThis</name>
458 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> 458 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string>
459 </property> 459 </property>
460 </widget> 460 </widget>
461 <widget> 461 <widget>
462 <class>QPushButton</class> 462 <class>QPushButton</class>
463 <property stdset="1"> 463 <property stdset="1">
464 <name>name</name> 464 <name>name</name>
465 <cstring>CalibrateLightSensor</cstring> 465 <cstring>CalibrateLightSensor</cstring>
466 </property> 466 </property>
467 <property stdset="1"> 467 <property stdset="1">
468 <name>text</name> 468 <name>text</name>
469 <string>Calibrate</string> 469 <string>Calibrate</string>
470 </property> 470 </property>
471 <property> 471 <property>
472 <name>whatsThis</name> 472 <name>whatsThis</name>
473 <string>Advanced settings for light sensor handling</string> 473 <string>Advanced settings for light sensor handling</string>
474 </property> 474 </property>
475 </widget> 475 </widget>
476 </hbox> 476 </hbox>
477 </widget> 477 </widget>
478 </vbox> 478 </vbox>
479 </widget> 479 </widget>
480 <spacer> 480 <spacer>
481 <property> 481 <property>
482 <name>name</name> 482 <name>name</name>
483 <cstring>Spacer4</cstring> 483 <cstring>Spacer4</cstring>
484 </property> 484 </property>
485 <property stdset="1"> 485 <property stdset="1">
486 <name>orientation</name> 486 <name>orientation</name>
487 <enum>Vertical</enum> 487 <enum>Vertical</enum>
488 </property> 488 </property>
489 <property stdset="1"> 489 <property stdset="1">
490 <name>sizeType</name> 490 <name>sizeType</name>
491 <enum>Expanding</enum> 491 <enum>Expanding</enum>
492 </property> 492 </property>
493 <property> 493 <property>
494 <name>sizeHint</name> 494 <name>sizeHint</name>
495 <size> 495 <size>
496 <width>20</width> 496 <width>20</width>
497 <height>20</height> 497 <height>20</height>
498 </size> 498 </size>
499 </property> 499 </property>
500 </spacer> 500 </spacer>
501 </vbox> 501 </vbox>
502 </widget> 502 </widget>
503 <widget> 503 <widget>
504 <class>QWidget</class> 504 <class>QWidget</class>
505 <property stdset="1"> 505 <property stdset="1">
506 <name>name</name> 506 <name>name</name>
507 <cstring>tab</cstring> 507 <cstring>tab</cstring>
508 </property> 508 </property>
509 <attribute> 509 <attribute>
510 <name>title</name> 510 <name>title</name>
511 <string>on AC</string> 511 <string>on AC</string>
512 </attribute> 512 </attribute>
513 <vbox> 513 <vbox>
514 <property stdset="1"> 514 <property stdset="1">
515 <name>margin</name> 515 <name>margin</name>
516 <number>3</number> 516 <number>3</number>
517 </property> 517 </property>
518 <property stdset="1"> 518 <property stdset="1">
519 <name>spacing</name> 519 <name>spacing</name>
520 <number>3</number> 520 <number>3</number>
521 </property> 521 </property>
522 <widget> 522 <widget>
523 <class>QGroupBox</class> 523 <class>QGroupBox</class>
524 <property stdset="1"> 524 <property stdset="1">
525 <name>name</name> 525 <name>name</name>
526 <cstring>GroupBox4</cstring> 526 <cstring>GroupBox4</cstring>
527 </property> 527 </property>
528 <property stdset="1"> 528 <property stdset="1">
529 <name>enabled</name> 529 <name>enabled</name>
530 <bool>true</bool> 530 <bool>true</bool>
531 </property> 531 </property>
532 <property stdset="1"> 532 <property stdset="1">
533 <name>title</name> 533 <name>title</name>
534 <string>General Settings</string> 534 <string>General Settings</string>
535 </property> 535 </property>
536 <property> 536 <property>
537 <name>layoutMargin</name> 537 <name>layoutMargin</name>
538 </property> 538 </property>
539 <property> 539 <property>
540 <name>layoutSpacing</name> 540 <name>layoutSpacing</name>
541 </property> 541 </property>
542 <vbox> 542 <vbox>
543 <property stdset="1"> 543 <property stdset="1">
544 <name>margin</name> 544 <name>margin</name>
545 <number>3</number> 545 <number>3</number>
546 </property> 546 </property>
547 <property stdset="1"> 547 <property stdset="1">
548 <name>spacing</name> 548 <name>spacing</name>
549 <number>3</number> 549 <number>3</number>
550 </property> 550 </property>
551 <widget> 551 <widget>
552 <class>QLayoutWidget</class> 552 <class>QLayoutWidget</class>
553 <property stdset="1"> 553 <property stdset="1">
554 <name>name</name> 554 <name>name</name>
555 <cstring>Layout14</cstring> 555 <cstring>Layout14</cstring>
556 </property> 556 </property>
557 <property> 557 <property>
558 <name>layoutMargin</name> 558 <name>layoutMargin</name>
559 </property> 559 </property>
560 <property> 560 <property>
561 <name>layoutSpacing</name> 561 <name>layoutSpacing</name>
562 </property> 562 </property>
563 <grid> 563 <grid>
564 <property stdset="1"> 564 <property stdset="1">
565 <name>margin</name> 565 <name>margin</name>
566 <number>3</number> 566 <number>3</number>
567 </property> 567 </property>
568 <property stdset="1"> 568 <property stdset="1">
569 <name>spacing</name> 569 <name>spacing</name>
570 <number>3</number> 570 <number>3</number>
571 </property> 571 </property>
572 <widget row="1" column="1" > 572 <widget row="1" column="1" >
573 <class>QSpinBox</class> 573 <class>QSpinBox</class>
574 <property stdset="1"> 574 <property stdset="1">
575 <name>name</name> 575 <name>name</name>
576 <cstring>interval_lightoff_ac_3</cstring> 576 <cstring>interval_lightoff_ac_3</cstring>
577 </property> 577 </property>
578 <property stdset="1"> 578 <property stdset="1">
579 <name>suffix</name> 579 <name>suffix</name>
580 <string> sec</string> 580 <string> sec</string>
581 </property> 581 </property>
582 <property stdset="1"> 582 <property stdset="1">
583 <name>specialValueText</name> 583 <name>specialValueText</name>
584 <string>never</string> 584 <string>never</string>
585 </property> 585 </property>
586 <property stdset="1"> 586 <property stdset="1">
587 <name>buttonSymbols</name> 587 <name>buttonSymbols</name>
588 <enum>PlusMinus</enum> 588 <enum>PlusMinus</enum>
589 </property> 589 </property>
590 <property stdset="1"> 590 <property stdset="1">
591 <name>maxValue</name> 591 <name>maxValue</name>
592 <number>3600</number> 592 <number>3600</number>
593 </property> 593 </property>
594 <property stdset="1"> 594 <property stdset="1">
595 <name>minValue</name> 595 <name>minValue</name>
596 <number>10</number> 596 <number>0</number>
597 </property> 597 </property>
598 <property stdset="1"> 598 <property stdset="1">
599 <name>lineStep</name> 599 <name>lineStep</name>
600 <number>10</number> 600 <number>10</number>
601 </property> 601 </property>
602 </widget> 602 </widget>
603 <widget row="0" column="0" > 603 <widget row="0" column="0" >
604 <class>QLabel</class> 604 <class>QLabel</class>
605 <property stdset="1"> 605 <property stdset="1">
606 <name>name</name> 606 <name>name</name>
607 <cstring>TextLabel1_3_2</cstring> 607 <cstring>TextLabel1_3_2</cstring>
608 </property> 608 </property>
609 <property stdset="1"> 609 <property stdset="1">
610 <name>sizePolicy</name> 610 <name>sizePolicy</name>
611 <sizepolicy> 611 <sizepolicy>
612 <hsizetype>7</hsizetype> 612 <hsizetype>7</hsizetype>
613 <vsizetype>1</vsizetype> 613 <vsizetype>1</vsizetype>
614 </sizepolicy> 614 </sizepolicy>
615 </property> 615 </property>
616 <property stdset="1"> 616 <property stdset="1">
617 <name>text</name> 617 <name>text</name>
618 <string>Dim light after</string> 618 <string>Dim light after</string>
619 </property> 619 </property>
620 </widget> 620 </widget>
621 <widget row="2" column="1" > 621 <widget row="2" column="1" >
622 <class>QSpinBox</class> 622 <class>QSpinBox</class>
623 <property stdset="1"> 623 <property stdset="1">
624 <name>name</name> 624 <name>name</name>
625 <cstring>interval_suspend_ac_3</cstring> 625 <cstring>interval_suspend_ac_3</cstring>
626 </property> 626 </property>
627 <property stdset="1"> 627 <property stdset="1">
628 <name>suffix</name> 628 <name>suffix</name>
629 <string> sec</string> 629 <string> sec</string>
630 </property> 630 </property>
631 <property stdset="1"> 631 <property stdset="1">
632 <name>specialValueText</name> 632 <name>specialValueText</name>
633 <string>never</string> 633 <string>never</string>
634 </property> 634 </property>
635 <property stdset="1"> 635 <property stdset="1">
636 <name>buttonSymbols</name> 636 <name>buttonSymbols</name>
637 <enum>PlusMinus</enum> 637 <enum>PlusMinus</enum>
638 </property> 638 </property>
639 <property stdset="1"> 639 <property stdset="1">
640 <name>maxValue</name> 640 <name>maxValue</name>
641 <number>3600</number> 641 <number>3600</number>
642 </property> 642 </property>
643 <property stdset="1"> 643 <property stdset="1">
644 <name>minValue</name> 644 <name>minValue</name>
645 <number>10</number> 645 <number>0</number>
646 </property> 646 </property>
647 <property stdset="1"> 647 <property stdset="1">
648 <name>lineStep</name> 648 <name>lineStep</name>
649 <number>10</number> 649 <number>10</number>
650 </property> 650 </property>
651 </widget> 651 </widget>
652 <widget row="2" column="0" > 652 <widget row="2" column="0" >
653 <class>QLabel</class> 653 <class>QLabel</class>
654 <property stdset="1"> 654 <property stdset="1">
655 <name>name</name> 655 <name>name</name>
656 <cstring>TextLabel1_2_2_3</cstring> 656 <cstring>TextLabel1_2_2_3</cstring>
657 </property> 657 </property>
658 <property stdset="1"> 658 <property stdset="1">
659 <name>text</name> 659 <name>text</name>
660 <string>Suspend after</string> 660 <string>Suspend after</string>
661 </property> 661 </property>
662 </widget> 662 </widget>
663 <widget row="0" column="1" > 663 <widget row="0" column="1" >
664 <class>QSpinBox</class> 664 <class>QSpinBox</class>
665 <property stdset="1"> 665 <property stdset="1">
666 <name>name</name> 666 <name>name</name>
667 <cstring>interval_dim_ac_3</cstring> 667 <cstring>interval_dim_ac_3</cstring>
668 </property> 668 </property>
669 <property stdset="1"> 669 <property stdset="1">
670 <name>suffix</name> 670 <name>suffix</name>
671 <string> sec</string> 671 <string> sec</string>
672 </property> 672 </property>
673 <property stdset="1"> 673 <property stdset="1">
674 <name>specialValueText</name> 674 <name>specialValueText</name>
675 <string>never</string> 675 <string>never</string>
676 </property> 676 </property>
677 <property stdset="1"> 677 <property stdset="1">
678 <name>buttonSymbols</name> 678 <name>buttonSymbols</name>
679 <enum>PlusMinus</enum> 679 <enum>PlusMinus</enum>
680 </property> 680 </property>
681 <property stdset="1"> 681 <property stdset="1">
682 <name>maxValue</name> 682 <name>maxValue</name>
683 <number>3600</number> 683 <number>3600</number>
684 </property> 684 </property>
685 <property stdset="1"> 685 <property stdset="1">
686 <name>minValue</name> 686 <name>minValue</name>
687 <number>10</number> 687 <number>0</number>
688 </property> 688 </property>
689 <property stdset="1"> 689 <property stdset="1">
690 <name>lineStep</name> 690 <name>lineStep</name>
691 <number>10</number> 691 <number>10</number>
692 </property> 692 </property>
693 </widget> 693 </widget>
694 <widget row="1" column="0" > 694 <widget row="1" column="0" >
695 <class>QLabel</class> 695 <class>QLabel</class>
696 <property stdset="1"> 696 <property stdset="1">
697 <name>name</name> 697 <name>name</name>
698 <cstring>TextLabel2_2_2</cstring> 698 <cstring>TextLabel2_2_2</cstring>
699 </property> 699 </property>
700 <property stdset="1"> 700 <property stdset="1">
701 <name>text</name> 701 <name>text</name>
702 <string>Light off after</string> 702 <string>Light off after</string>
703 </property> 703 </property>
704 </widget> 704 </widget>
705 </grid> 705 </grid>
706 </widget> 706 </widget>
707 <widget> 707 <widget>
708 <class>QCheckBox</class> 708 <class>QCheckBox</class>
709 <property stdset="1"> 709 <property stdset="1">
710 <name>name</name> 710 <name>name</name>
711 <cstring>LcdOffOnly_2_3</cstring> 711 <cstring>LcdOffOnly_2_3</cstring>
712 </property> 712 </property>
713 <property stdset="1"> 713 <property stdset="1">
714 <name>text</name> 714 <name>text</name>
715 <string>Deactivate LCD only (does not suspend)</string> 715 <string>Deactivate LCD only (does not suspend)</string>
716 </property> 716 </property>
717 </widget> 717 </widget>
718 </vbox> 718 </vbox>
719 </widget> 719 </widget>
720 <widget> 720 <widget>
721 <class>QGroupBox</class> 721 <class>QGroupBox</class>
722 <property stdset="1"> 722 <property stdset="1">
723 <name>name</name> 723 <name>name</name>
724 <cstring>GroupBox8</cstring> 724 <cstring>GroupBox8</cstring>
725 </property> 725 </property>
726 <property stdset="1"> 726 <property stdset="1">
727 <name>title</name> 727 <name>title</name>
728 <string>Backlight</string> 728 <string>Backlight</string>
729 </property> 729 </property>
730 <property> 730 <property>
731 <name>layoutMargin</name> 731 <name>layoutMargin</name>
732 </property> 732 </property>
733 <property> 733 <property>
734 <name>layoutSpacing</name> 734 <name>layoutSpacing</name>
735 </property> 735 </property>
736 <vbox> 736 <vbox>
737 <property stdset="1"> 737 <property stdset="1">
738 <name>margin</name> 738 <name>margin</name>
739 <number>3</number> 739 <number>3</number>
740 </property> 740 </property>
741 <property stdset="1"> 741 <property stdset="1">
742 <name>spacing</name> 742 <name>spacing</name>
743 <number>3</number> 743 <number>3</number>
744 </property> 744 </property>
745 <widget> 745 <widget>
746 <class>QSlider</class> 746 <class>QSlider</class>
747 <property stdset="1"> 747 <property stdset="1">
748 <name>name</name> 748 <name>name</name>
749 <cstring>brightness_ac_3</cstring> 749 <cstring>brightness_ac_3</cstring>
750 </property> 750 </property>
751 <property stdset="1"> 751 <property stdset="1">
752 <name>minValue</name> 752 <name>minValue</name>
753 <number>0</number> 753 <number>0</number>
754 </property> 754 </property>
755 <property stdset="1"> 755 <property stdset="1">
756 <name>maxValue</name> 756 <name>maxValue</name>
757 <number>255</number> 757 <number>255</number>
758 </property> 758 </property>
759 <property stdset="1"> 759 <property stdset="1">
760 <name>lineStep</name> 760 <name>lineStep</name>
761 <number>16</number> 761 <number>16</number>
762 </property> 762 </property>
763 <property stdset="1"> 763 <property stdset="1">
764 <name>pageStep</name> 764 <name>pageStep</name>
765 <number>16</number> 765 <number>16</number>
766 </property> 766 </property>
767 <property stdset="1"> 767 <property stdset="1">
768 <name>value</name> 768 <name>value</name>
769 <number>255</number> 769 <number>255</number>
770 </property> 770 </property>
771 <property stdset="1"> 771 <property stdset="1">
772 <name>tracking</name> 772 <name>tracking</name>
773 <bool>true</bool> 773 <bool>true</bool>
774 </property> 774 </property>
775 <property stdset="1"> 775 <property stdset="1">
776 <name>orientation</name> 776 <name>orientation</name>
777 <enum>Horizontal</enum> 777 <enum>Horizontal</enum>
778 </property> 778 </property>
779 <property stdset="1"> 779 <property stdset="1">
780 <name>tickmarks</name> 780 <name>tickmarks</name>
781 <enum>Right</enum> 781 <enum>Right</enum>
782 </property> 782 </property>
783 <property> 783 <property>
784 <name>whatsThis</name> 784 <name>whatsThis</name>
785 <string>set a fix value for backlight</string> 785 <string>set a fix value for backlight</string>
786 </property> 786 </property>
787 </widget> 787 </widget>
788 <widget> 788 <widget>
789 <class>QLayoutWidget</class> 789 <class>QLayoutWidget</class>
790 <property stdset="1"> 790 <property stdset="1">
791 <name>name</name> 791 <name>name</name>
792 <cstring>Layout20</cstring> 792 <cstring>Layout20</cstring>
793 </property> 793 </property>
794 <hbox> 794 <hbox>
795 <property stdset="1"> 795 <property stdset="1">
796 <name>margin</name> 796 <name>margin</name>
797 <number>0</number> 797 <number>0</number>
798 </property> 798 </property>
799 <property stdset="1"> 799 <property stdset="1">
800 <name>spacing</name> 800 <name>spacing</name>
801 <number>6</number> 801 <number>6</number>
802 </property> 802 </property>
803 <widget> 803 <widget>
804 <class>QLabel</class> 804 <class>QLabel</class>
805 <property stdset="1"> 805 <property stdset="1">
806 <name>name</name> 806 <name>name</name>
807 <cstring>PixmapLabel2_2_3</cstring> 807 <cstring>PixmapLabel2_2_3</cstring>
808 </property> 808 </property>
809 <property stdset="1"> 809 <property stdset="1">
810 <name>pixmap</name> 810 <name>pixmap</name>
811 <pixmap>image2</pixmap> 811 <pixmap>image2</pixmap>
812 </property> 812 </property>
813 <property stdset="1"> 813 <property stdset="1">
814 <name>scaledContents</name> 814 <name>scaledContents</name>
815 <bool>false</bool> 815 <bool>false</bool>
816 </property> 816 </property>
817 </widget> 817 </widget>
818 <widget> 818 <widget>
819 <class>QLabel</class> 819 <class>QLabel</class>
820 <property stdset="1"> 820 <property stdset="1">
821 <name>name</name> 821 <name>name</name>
822 <cstring>TextLabel6</cstring> 822 <cstring>TextLabel6</cstring>
823 </property> 823 </property>
824 <property stdset="1"> 824 <property stdset="1">
825 <name>text</name> 825 <name>text</name>
826 <string>Off</string> 826 <string>Off</string>
827 </property> 827 </property>
828 </widget> 828 </widget>
829 <spacer> 829 <spacer>
830 <property> 830 <property>
831 <name>name</name> 831 <name>name</name>
832 <cstring>Spacer3</cstring> 832 <cstring>Spacer3</cstring>
833 </property> 833 </property>
834 <property stdset="1"> 834 <property stdset="1">
835 <name>orientation</name> 835 <name>orientation</name>
836 <enum>Horizontal</enum> 836 <enum>Horizontal</enum>
837 </property> 837 </property>
838 <property stdset="1"> 838 <property stdset="1">
839 <name>sizeType</name> 839 <name>sizeType</name>
840 <enum>Expanding</enum> 840 <enum>Expanding</enum>
841 </property> 841 </property>
842 <property> 842 <property>
843 <name>sizeHint</name> 843 <name>sizeHint</name>
844 <size> 844 <size>
845 <width>20</width> 845 <width>20</width>
846 <height>20</height> 846 <height>20</height>
847 </size> 847 </size>
848 </property> 848 </property>
849 </spacer> 849 </spacer>
850 <widget> 850 <widget>
851 <class>QLabel</class> 851 <class>QLabel</class>
852 <property stdset="1"> 852 <property stdset="1">
853 <name>name</name> 853 <name>name</name>
854 <cstring>TextLabel7</cstring> 854 <cstring>TextLabel7</cstring>
855 </property> 855 </property>
856 <property stdset="1"> 856 <property stdset="1">
857 <name>text</name> 857 <name>text</name>
858 <string>Full</string> 858 <string>Full</string>
859 </property> 859 </property>
860 </widget> 860 </widget>
861 <widget> 861 <widget>
862 <class>QLabel</class> 862 <class>QLabel</class>
863 <property stdset="1"> 863 <property stdset="1">
864 <name>name</name> 864 <name>name</name>
865 <cstring>PixmapLabel1_2_3</cstring> 865 <cstring>PixmapLabel1_2_3</cstring>
866 </property> 866 </property>
867 <property stdset="1"> 867 <property stdset="1">
868 <name>pixmap</name> 868 <name>pixmap</name>
869 <pixmap>image1</pixmap> 869 <pixmap>image1</pixmap>
870 </property> 870 </property>
871 <property stdset="1"> 871 <property stdset="1">
872 <name>scaledContents</name> 872 <name>scaledContents</name>
873 <bool>false</bool> 873 <bool>false</bool>
874 </property> 874 </property>
875 </widget> 875 </widget>
876 </hbox> 876 </hbox>
877 </widget> 877 </widget>
878 <widget> 878 <widget>
879 <class>QLayoutWidget</class> 879 <class>QLayoutWidget</class>
880 <property stdset="1"> 880 <property stdset="1">
881 <name>name</name> 881 <name>name</name>
882 <cstring>Layout10</cstring> 882 <cstring>Layout10</cstring>
883 </property> 883 </property>
884 <hbox> 884 <hbox>
885 <property stdset="1"> 885 <property stdset="1">
886 <name>margin</name> 886 <name>margin</name>
887 <number>0</number> 887 <number>0</number>
888 </property> 888 </property>
889 <property stdset="1"> 889 <property stdset="1">
890 <name>spacing</name> 890 <name>spacing</name>
891 <number>6</number> 891 <number>6</number>
892 </property> 892 </property>
893 <widget> 893 <widget>
894 <class>QCheckBox</class> 894 <class>QCheckBox</class>
895 <property stdset="1"> 895 <property stdset="1">
896 <name>name</name> 896 <name>name</name>
897 <cstring>auto_brightness_ac_3</cstring> 897 <cstring>auto_brightness_ac_3</cstring>
898 </property> 898 </property>
899 <property stdset="1"> 899 <property stdset="1">
900 <name>text</name> 900 <name>text</name>
901 <string>Use Light Sensor</string> 901 <string>Use Light Sensor</string>
902 </property> 902 </property>
903 <property> 903 <property>
904 <name>whatsThis</name> 904 <name>whatsThis</name>
905 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> 905 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string>
906 </property> 906 </property>
907 </widget> 907 </widget>
908 <widget> 908 <widget>
909 <class>QPushButton</class> 909 <class>QPushButton</class>
910 <property stdset="1"> 910 <property stdset="1">
911 <name>name</name> 911 <name>name</name>
912 <cstring>CalibrateLightSensorAC</cstring> 912 <cstring>CalibrateLightSensorAC</cstring>
913 </property> 913 </property>
914 <property stdset="1"> 914 <property stdset="1">
915 <name>text</name> 915 <name>text</name>
916 <string>Calibrate</string> 916 <string>Calibrate</string>
917 </property> 917 </property>
918 <property> 918 <property>
919 <name>whatsThis</name> 919 <name>whatsThis</name>
920 <string>Advanced settings for light sensor handling</string> 920 <string>Advanced settings for light sensor handling</string>
921 </property> 921 </property>
922 </widget> 922 </widget>
923 </hbox> 923 </hbox>
924 </widget> 924 </widget>
925 </vbox> 925 </vbox>
926 </widget> 926 </widget>
927 <spacer> 927 <spacer>
928 <property> 928 <property>
929 <name>name</name> 929 <name>name</name>
930 <cstring>Spacer5</cstring> 930 <cstring>Spacer5</cstring>
931 </property> 931 </property>
932 <property stdset="1"> 932 <property stdset="1">
933 <name>orientation</name> 933 <name>orientation</name>
934 <enum>Vertical</enum> 934 <enum>Vertical</enum>
935 </property> 935 </property>
936 <property stdset="1"> 936 <property stdset="1">
937 <name>sizeType</name> 937 <name>sizeType</name>
938 <enum>Expanding</enum> 938 <enum>Expanding</enum>
939 </property> 939 </property>
940 <property> 940 <property>
941 <name>sizeHint</name> 941 <name>sizeHint</name>
942 <size> 942 <size>
943 <width>20</width> 943 <width>20</width>
944 <height>20</height> 944 <height>20</height>
945 </size> 945 </size>
946 </property> 946 </property>
947 </spacer> 947 </spacer>
948 </vbox> 948 </vbox>
949 </widget> 949 </widget>
950 <widget> 950 <widget>
951 <class>QWidget</class> 951 <class>QWidget</class>
952 <property stdset="1"> 952 <property stdset="1">
953 <name>name</name> 953 <name>name</name>
954 <cstring>tab</cstring> 954 <cstring>tab</cstring>
955 </property> 955 </property>
956 <attribute> 956 <attribute>
957 <name>title</name> 957 <name>title</name>
958 <string>Advanced Settings</string> 958 <string>Advanced Settings</string>
959 </attribute> 959 </attribute>
960 <vbox> 960 <vbox>
961 <property stdset="1"> 961 <property stdset="1">
962 <name>margin</name> 962 <name>margin</name>
963 <number>3</number> 963 <number>3</number>
964 </property> 964 </property>
965 <property stdset="1"> 965 <property stdset="1">
966 <name>spacing</name> 966 <name>spacing</name>
967 <number>3</number> 967 <number>3</number>
968 </property> 968 </property>
969 <widget> 969 <widget>
970 <class>QGroupBox</class> 970 <class>QGroupBox</class>
971 <property stdset="1"> 971 <property stdset="1">
972 <name>name</name> 972 <name>name</name>
973 <cstring>GroupBox5</cstring> 973 <cstring>GroupBox5</cstring>
974 </property> 974 </property>
975 <property stdset="1"> 975 <property stdset="1">
976 <name>title</name> 976 <name>title</name>
977 <string>Warnings</string> 977 <string>Warnings</string>
978 </property> 978 </property>
979 <property> 979 <property>
980 <name>layoutMargin</name> 980 <name>layoutMargin</name>
981 </property> 981 </property>
982 <property> 982 <property>
983 <name>layoutSpacing</name> 983 <name>layoutSpacing</name>
984 </property> 984 </property>
985 <vbox> 985 <vbox>
986 <property stdset="1"> 986 <property stdset="1">
987 <name>margin</name> 987 <name>margin</name>
988 <number>3</number> 988 <number>3</number>
989 </property> 989 </property>
990 <property stdset="1"> 990 <property stdset="1">
991 <name>spacing</name> 991 <name>spacing</name>
992 <number>3</number> 992 <number>3</number>
993 </property> 993 </property>
994 <widget> 994 <widget>
995 <class>QLayoutWidget</class> 995 <class>QLayoutWidget</class>
996 <property stdset="1"> 996 <property stdset="1">
997 <name>name</name> 997 <name>name</name>
998 <cstring>Layout18</cstring> 998 <cstring>Layout18</cstring>
999 </property> 999 </property>
1000 <property> 1000 <property>
1001 <name>layoutMargin</name> 1001 <name>layoutMargin</name>
1002 </property> 1002 </property>
1003 <property> 1003 <property>
1004 <name>layoutSpacing</name> 1004 <name>layoutSpacing</name>
1005 </property> 1005 </property>
1006 <grid> 1006 <grid>
1007 <property stdset="1"> 1007 <property stdset="1">
1008 <name>margin</name> 1008 <name>margin</name>
1009 <number>3</number> 1009 <number>3</number>
1010 </property> 1010 </property>
1011 <property stdset="1"> 1011 <property stdset="1">
1012 <name>spacing</name> 1012 <name>spacing</name>
1013 <number>3</number> 1013 <number>3</number>
1014 </property> 1014 </property>
1015 <widget row="0" column="0" > 1015 <widget row="0" column="0" >
1016 <class>QLabel</class> 1016 <class>QLabel</class>
1017 <property stdset="1"> 1017 <property stdset="1">
1018 <name>name</name> 1018 <name>name</name>
1019 <cstring>TextLabel1</cstring> 1019 <cstring>TextLabel1</cstring>
1020 </property> 1020 </property>
1021 <property stdset="1"> 1021 <property stdset="1">
1022 <name>sizePolicy</name> 1022 <name>sizePolicy</name>
1023 <sizepolicy> 1023 <sizepolicy>
1024 <hsizetype>7</hsizetype> 1024 <hsizetype>7</hsizetype>
1025 <vsizetype>5</vsizetype> 1025 <vsizetype>5</vsizetype>
1026 </sizepolicy> 1026 </sizepolicy>
1027 </property> 1027 </property>
1028 <property stdset="1"> 1028 <property stdset="1">
1029 <name>text</name> 1029 <name>text</name>
1030 <string>Low power warning interval</string> 1030 <string>Low power warning interval</string>
1031 </property> 1031 </property>
1032 <property stdset="1"> 1032 <property stdset="1">
1033 <name>alignment</name> 1033 <name>alignment</name>
1034 <set>WordBreak|AlignVCenter|AlignLeft</set> 1034 <set>WordBreak|AlignVCenter|AlignLeft</set>
1035 </property> 1035 </property>
1036 <property> 1036 <property>
1037 <name>wordwrap</name> 1037 <name>wordwrap</name>
1038 </property> 1038 </property>
1039 </widget> 1039 </widget>
1040 <widget row="1" column="1" > 1040 <widget row="1" column="1" >
1041 <class>QSpinBox</class> 1041 <class>QSpinBox</class>
1042 <property stdset="1"> 1042 <property stdset="1">
1043 <name>name</name> 1043 <name>name</name>
1044 <cstring>lowSpinBox</cstring> 1044 <cstring>lowSpinBox</cstring>
1045 </property> 1045 </property>
1046 <property stdset="1"> 1046 <property stdset="1">
1047 <name>suffix</name> 1047 <name>suffix</name>
1048 <string> %</string> 1048 <string> %</string>
1049 </property> 1049 </property>
1050 <property stdset="1"> 1050 <property stdset="1">
1051 <name>maxValue</name> 1051 <name>maxValue</name>
1052 <number>80</number> 1052 <number>80</number>
1053 </property> 1053 </property>
1054 <property stdset="1"> 1054 <property stdset="1">
1055 <name>minValue</name> 1055 <name>minValue</name>
1056 <number>2</number> 1056 <number>2</number>
1057 </property> 1057 </property>
1058 <property> 1058 <property>
1059 <name>whatsThis</name> 1059 <name>whatsThis</name>
1060 <string>At what battery level should the low power warning pop up</string> 1060 <string>At what battery level should the low power warning pop up</string>
1061 </property> 1061 </property>
1062 </widget> 1062 </widget>
1063 <widget row="0" column="1" > 1063 <widget row="0" column="1" >
1064 <class>QSpinBox</class> 1064 <class>QSpinBox</class>
1065 <property stdset="1"> 1065 <property stdset="1">
1066 <name>name</name> 1066 <name>name</name>
1067 <cstring>warnintervalBox</cstring> 1067 <cstring>warnintervalBox</cstring>
1068 </property> 1068 </property>
1069 <property stdset="1"> 1069 <property stdset="1">
1070 <name>suffix</name> 1070 <name>suffix</name>
1071 <string> sec</string> 1071 <string> sec</string>