-rw-r--r-- | core/settings/light-and-power/light.cpp | 12 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 4 |
2 files changed, 5 insertions, 11 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 1a94209..d93b0af 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -1,265 +1,263 @@ | |||
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 <qlistbox.h> | 47 | #include <qlistbox.h> |
48 | #include <qdir.h> | 48 | #include <qdir.h> |
49 | #if QT_VERSION >= 300 | 49 | #if QT_VERSION >= 300 |
50 | #include <qstylefactory.h> | 50 | #include <qstylefactory.h> |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #include <opie/odevice.h> | 53 | #include <opie/odevice.h> |
54 | 54 | ||
55 | using namespace Opie; | 55 | using namespace Opie; |
56 | 56 | ||
57 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | 57 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) |
58 | : LightSettingsBase( parent, name, TRUE, fl ) | 58 | : LightSettingsBase( parent, name, TRUE, fl ) |
59 | { | 59 | { |
60 | 60 | ||
61 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || | 61 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || |
62 | ODevice::inst()->model() == Model_iPAQ_H36xx || | 62 | ODevice::inst()->model() == Model_iPAQ_H36xx || |
63 | ODevice::inst()->model() == Model_iPAQ_H37xx || | 63 | ODevice::inst()->model() == Model_iPAQ_H37xx || |
64 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { | 64 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { |
65 | // Not supported yet - hide until implemented | 65 | // Not supported yet - hide until implemented |
66 | IpaqGroupBox->setEnabled( false ); | 66 | IpaqGroupBox->setEnabled( false ); |
67 | IpaqGroupBoxAC->setEnabled( false ); | 67 | IpaqGroupBoxAC->setEnabled( false ); |
68 | LightSensorGroupBox->setEnabled( false ); | 68 | LightSensorGroupBox->setEnabled( false ); |
69 | } else { | 69 | } else { |
70 | // if ipaq no need to show the sensor box | 70 | // if ipaq no need to show the sensor box |
71 | IpaqGroupBox->hide(); | 71 | IpaqGroupBox->hide(); |
72 | IpaqGroupBoxAC->hide(); | 72 | IpaqGroupBoxAC->hide(); |
73 | LightSensorGroupBox->hide(); | 73 | LightSensorGroupBox->hide(); |
74 | } | 74 | } |
75 | 75 | ||
76 | Config config( "qpe" ); | 76 | Config config( "qpe" ); |
77 | |||
78 | config.setGroup( "Screensaver" ); | 77 | config.setGroup( "Screensaver" ); |
79 | 78 | ||
80 | int interval; | 79 | int interval; |
81 | 80 | ||
82 | // battery spinboxes | 81 | // battery spinboxes |
83 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 82 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
84 | interval_dim->setValue( interval ); | 83 | interval_dim->setValue( interval ); |
85 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 84 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
86 | interval_lightoff->setValue( interval ); | 85 | interval_lightoff->setValue( interval ); |
87 | interval = config.readNumEntry( "Interval", 60 ); | 86 | interval = config.readNumEntry( "Interval", 60 ); |
88 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) | 87 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) |
89 | interval_suspend->setValue( interval ); | 88 | interval_suspend->setValue( interval ); |
90 | 89 | ||
91 | // ac spinboxes | 90 | // ac spinboxes |
92 | interval = config.readNumEntry( "Interval_DimAC", 20 ); | 91 | interval = config.readNumEntry( "Interval_DimAC", 20 ); |
93 | interval_dim_ac_3->setValue( interval ); | 92 | interval_dim_ac_3->setValue( interval ); |
94 | interval = config.readNumEntry( "Interval_LightOffAC", 30 ); | 93 | interval = config.readNumEntry( "Interval_LightOffAC", 30 ); |
95 | interval_lightoff_ac_3->setValue( interval ); | 94 | interval_lightoff_ac_3->setValue( interval ); |
96 | interval = config.readNumEntry( "IntervalAC", 60 ); | 95 | interval = config.readNumEntry( "IntervalAC", 60 ); |
97 | if ( interval > 3600 ) { | 96 | if ( interval > 3600 ) { |
98 | interval /= 1000; // compatibility (was millisecs) | 97 | interval /= 1000; // compatibility (was millisecs) |
99 | } | 98 | } |
100 | interval_suspend_ac_3->setValue( interval ); | 99 | interval_suspend_ac_3->setValue( interval ); |
101 | 100 | ||
102 | 101 | ||
103 | // battery check and slider | 102 | // battery check and slider |
104 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); | 103 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); |
105 | screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); | 104 | screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); |
106 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); | 105 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); |
107 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); | 106 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); |
108 | initbright = config.readNumEntry("Brightness",255); | 107 | initbright = config.readNumEntry("Brightness",255); |
109 | brightness->setMaxValue( maxbright ); | 108 | brightness->setMaxValue( maxbright ); |
110 | brightness->setTickInterval( QMAX(1,maxbright/16) ); | 109 | brightness->setTickInterval( QMAX(1,maxbright/16) ); |
111 | brightness->setLineStep( QMAX(1,maxbright/16) ); | 110 | brightness->setLineStep( QMAX(1,maxbright/16) ); |
112 | brightness->setPageStep( QMAX(1,maxbright/16) ); | 111 | brightness->setPageStep( QMAX(1,maxbright/16) ); |
113 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); | 112 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); |
114 | 113 | ||
115 | // ac check and slider | 114 | // ac check and slider |
116 | screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 ); | 115 | screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 ); |
117 | screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 ); | 116 | screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 ); |
118 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); | 117 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); |
119 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); | 118 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); |
120 | initbright_ac = config.readNumEntry("BrightnessAC",255); | 119 | initbright_ac = config.readNumEntry("BrightnessAC",255); |
121 | brightness_ac_3->setMaxValue( maxbright_ac ); | 120 | brightness_ac_3->setMaxValue( maxbright_ac ); |
122 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); | 121 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); |
123 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); | 122 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); |
124 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); | 123 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); |
125 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); | 124 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); |
126 | 125 | ||
127 | // advanced settings | 126 | // advanced settings |
128 | config.setGroup( "APM" ); | 127 | config.setGroup( "APM" ); |
129 | warnintervalBox->setValue( config.readNumEntry("check_interval", 10000)/1000 ); | 128 | warnintervalBox->setValue( config.readNumEntry("check_interval", 10000)/1000 ); |
130 | lowSpinBox->setValue( config.readNumEntry("power_verylow", 10 ) ); | 129 | lowSpinBox->setValue( config.readNumEntry("power_verylow", 10 ) ); |
131 | criticalSpinBox->setValue( config.readNumEntry("power_critical", 5 ) ); | 130 | criticalSpinBox->setValue( config.readNumEntry("power_critical", 5 ) ); |
132 | 131 | ||
133 | // ipaq sensor | 132 | // ipaq sensor |
134 | config.setGroup( "Ipaq_light_sensor" ); | 133 | config.setGroup( "Ipaq_light_sensor" ); |
135 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); | 134 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); |
136 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); | 135 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); |
137 | LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); | 136 | LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); |
138 | LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); | 137 | LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); |
139 | connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; | 138 | connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; |
140 | LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); | 139 | LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); |
141 | 140 | ||
142 | connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness())); | 141 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); |
143 | connect(brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); | 142 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); |
144 | } | 143 | } |
145 | 144 | ||
146 | LightSettings::~LightSettings() | 145 | LightSettings::~LightSettings() |
147 | { | 146 | { |
148 | } | 147 | } |
149 | 148 | ||
150 | void LightSettings::slotSliderTicks( int steps ) { | 149 | void LightSettings::slotSliderTicks( int steps ) { |
151 | LightMinValueSlider->setTickInterval( steps ); | 150 | LightMinValueSlider->setTickInterval( steps ); |
152 | } | 151 | } |
153 | 152 | ||
154 | static void set_fl(int bright) | 153 | static void set_fl(int bright) |
155 | { | 154 | { |
156 | qDebug( QString("BRIGHT !! : %1").arg( bright ) ); | 155 | qDebug ( QString( "Brightness" ).arg( bright ) ); |
157 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 156 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
158 | e << bright; | 157 | e << bright; |
159 | } | 158 | } |
160 | 159 | ||
161 | void LightSettings::reject() | 160 | void LightSettings::reject() |
162 | { | 161 | { |
163 | set_fl(initbright); | 162 | set_fl(initbright); |
164 | 163 | ||
165 | QDialog::reject(); | 164 | QDialog::reject(); |
166 | } | 165 | } |
167 | 166 | ||
168 | void LightSettings::accept() | 167 | void LightSettings::accept() |
169 | { | 168 | { |
170 | if ( qApp->focusWidget() ) | 169 | if ( qApp->focusWidget() ) |
171 | qApp->focusWidget()->clearFocus(); | 170 | qApp->focusWidget()->clearFocus(); |
172 | 171 | ||
173 | applyBrightness(); | 172 | applyBrightness(); |
174 | 173 | ||
175 | // bat | 174 | // bat |
176 | int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); | 175 | int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); |
177 | int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); | 176 | int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); |
178 | int i_suspend = interval_suspend->value(); | 177 | int i_suspend = interval_suspend->value(); |
179 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 178 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
180 | e << i_dim << i_lightoff << i_suspend; | 179 | e << i_dim << i_lightoff << i_suspend; |
181 | 180 | ||
182 | // ac | 181 | // ac |
183 | int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); | 182 | int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); |
184 | int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); | 183 | int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); |
185 | int i_suspend_ac = interval_suspend_ac_3->value(); | 184 | int i_suspend_ac = interval_suspend_ac_3->value(); |
186 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); | 185 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); |
187 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; | 186 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; |
188 | 187 | ||
189 | Config config( "qpe" ); | 188 | Config config( "qpe" ); |
190 | config.setGroup( "Screensaver" ); | 189 | config.setGroup( "Screensaver" ); |
191 | 190 | ||
192 | // bat | 191 | // bat |
193 | config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); | 192 | config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); |
194 | config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); | 193 | config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); |
195 | config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); | 194 | config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); |
196 | config.writeEntry( "Interval_Dim", interval_dim->value() ); | 195 | config.writeEntry( "Interval_Dim", interval_dim->value() ); |
197 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); | 196 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); |
198 | config.writeEntry( "Interval", interval_suspend->value() ); | 197 | config.writeEntry( "Interval", interval_suspend->value() ); |
199 | config.writeEntry( "Brightness", | 198 | config.writeEntry( "Brightness", |
200 | (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); | 199 | (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); |
201 | 200 | ||
202 | // ac | 201 | // ac |
203 | config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); | 202 | config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); |
204 | config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); | 203 | config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); |
205 | config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); | 204 | config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); |
206 | config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); | 205 | config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); |
207 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); | 206 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); |
208 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); | 207 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); |
209 | config.writeEntry( "BrightnessAC", | 208 | config.writeEntry( "BrightnessAC", |
210 | (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() ); | 209 | (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() ); |
211 | 210 | ||
212 | // advanced | 211 | // advanced |
213 | config.setGroup( "APM" ); | 212 | config.setGroup( "APM" ); |
214 | config.writeEntry( "check_interval", warnintervalBox->value()*1000 ); | 213 | config.writeEntry( "check_interval", warnintervalBox->value()*1000 ); |
215 | config.writeEntry( "power_verylow", lowSpinBox->value() ); | 214 | config.writeEntry( "power_verylow", lowSpinBox->value() ); |
216 | config.writeEntry( "power_critical", criticalSpinBox->value() ); | 215 | config.writeEntry( "power_critical", criticalSpinBox->value() ); |
217 | QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); | 216 | QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); |
218 | 217 | ||
219 | 218 | ||
220 | // only make ipaq light sensor entries in config file if on an ipaq | 219 | // only make ipaq light sensor entries in config file if on an ipaq |
221 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || | 220 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || |
222 | ODevice::inst()->model() == Model_iPAQ_H36xx || | 221 | ODevice::inst()->model() == Model_iPAQ_H36xx || |
223 | ODevice::inst()->model() == Model_iPAQ_H37xx || | 222 | ODevice::inst()->model() == Model_iPAQ_H37xx || |
224 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { | 223 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { |
225 | 224 | ||
226 | // ipaq sensor | 225 | // ipaq sensor |
227 | config.setGroup( "Ipaq_light_sensor" ); | 226 | config.setGroup( "Ipaq_light_sensor" ); |
228 | 227 | ||
229 | config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); | 228 | config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); |
230 | config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); | 229 | config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); |
231 | config.writeEntry( "Steps", LightStepSpin->value() ); | 230 | config.writeEntry( "Steps", LightStepSpin->value() ); |
232 | config.writeEntry( "MinValue", LightMinValueSlider->value() ); | 231 | config.writeEntry( "MinValue", LightMinValueSlider->value() ); |
233 | config.writeEntry( "Shift", LightShiftSpin->value() ); | 232 | config.writeEntry( "Shift", LightShiftSpin->value() ); |
234 | } | 233 | } |
235 | 234 | ||
236 | config.write(); | 235 | config.write(); |
237 | 236 | ||
238 | QDialog::accept(); | 237 | QDialog::accept(); |
239 | } | 238 | } |
240 | 239 | ||
241 | void LightSettings::applyBrightness() | 240 | void LightSettings::applyBrightness() |
242 | { | 241 | { |
243 | if ( !PowerStatus::Online ) { | 242 | if ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) { |
244 | int bright = ( brightness->value() ) * 255 / brightness->maxValue(); | 243 | int bright = ( brightness->value() ) * 255 / brightness->maxValue(); |
245 | set_fl(bright); | 244 | set_fl(bright); |
246 | } | 245 | } |
247 | } | 246 | } |
248 | 247 | ||
249 | void LightSettings::applyBrightnessAC() | 248 | void LightSettings::applyBrightnessAC() |
250 | { | 249 | { |
251 | qDebug( QString("SLIDER : %1").arg( brightness_ac_3->value() ) ); | ||
252 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting | 250 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting |
253 | if ( PowerStatus::Online ) { | 251 | if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { |
254 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); | 252 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); |
255 | set_fl(bright); | 253 | set_fl(bright); |
256 | } | 254 | } |
257 | } | 255 | } |
258 | 256 | ||
259 | 257 | ||
260 | 258 | ||
261 | void LightSettings::done(int r) | 259 | void LightSettings::done(int r) |
262 | { | 260 | { |
263 | QDialog::done(r); | 261 | QDialog::done(r); |
264 | close ( ); | 262 | close ( ); |
265 | } | 263 | } |
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index 5e62626..be096ac 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -377,772 +377,768 @@ | |||
377 | <property stdset="1"> | 377 | <property stdset="1"> |
378 | <name>sizeType</name> | 378 | <name>sizeType</name> |
379 | <enum>Expanding</enum> | 379 | <enum>Expanding</enum> |
380 | </property> | 380 | </property> |
381 | <property> | 381 | <property> |
382 | <name>sizeHint</name> | 382 | <name>sizeHint</name> |
383 | <size> | 383 | <size> |
384 | <width>20</width> | 384 | <width>20</width> |
385 | <height>20</height> | 385 | <height>20</height> |
386 | </size> | 386 | </size> |
387 | </property> | 387 | </property> |
388 | </spacer> | 388 | </spacer> |
389 | <widget> | 389 | <widget> |
390 | <class>QLabel</class> | 390 | <class>QLabel</class> |
391 | <property stdset="1"> | 391 | <property stdset="1"> |
392 | <name>name</name> | 392 | <name>name</name> |
393 | <cstring>TextLabel5</cstring> | 393 | <cstring>TextLabel5</cstring> |
394 | </property> | 394 | </property> |
395 | <property stdset="1"> | 395 | <property stdset="1"> |
396 | <name>text</name> | 396 | <name>text</name> |
397 | <string>Full</string> | 397 | <string>Full</string> |
398 | </property> | 398 | </property> |
399 | </widget> | 399 | </widget> |
400 | <widget> | 400 | <widget> |
401 | <class>QLabel</class> | 401 | <class>QLabel</class> |
402 | <property stdset="1"> | 402 | <property stdset="1"> |
403 | <name>name</name> | 403 | <name>name</name> |
404 | <cstring>PixmapLabel1</cstring> | 404 | <cstring>PixmapLabel1</cstring> |
405 | </property> | 405 | </property> |
406 | <property stdset="1"> | 406 | <property stdset="1"> |
407 | <name>pixmap</name> | 407 | <name>pixmap</name> |
408 | <pixmap>image1</pixmap> | 408 | <pixmap>image1</pixmap> |
409 | </property> | 409 | </property> |
410 | <property stdset="1"> | 410 | <property stdset="1"> |
411 | <name>scaledContents</name> | 411 | <name>scaledContents</name> |
412 | <bool>false</bool> | 412 | <bool>false</bool> |
413 | </property> | 413 | </property> |
414 | </widget> | 414 | </widget> |
415 | </hbox> | 415 | </hbox> |
416 | </widget> | 416 | </widget> |
417 | </vbox> | 417 | </vbox> |
418 | </widget> | 418 | </widget> |
419 | <widget> | 419 | <widget> |
420 | <class>QGroupBox</class> | 420 | <class>QGroupBox</class> |
421 | <property stdset="1"> | 421 | <property stdset="1"> |
422 | <name>name</name> | 422 | <name>name</name> |
423 | <cstring>IpaqGroupBox</cstring> | 423 | <cstring>IpaqGroupBox</cstring> |
424 | </property> | 424 | </property> |
425 | <property stdset="1"> | 425 | <property stdset="1"> |
426 | <name>title</name> | 426 | <name>title</name> |
427 | <string>iPAQ</string> | 427 | <string>iPAQ</string> |
428 | </property> | 428 | </property> |
429 | <property> | 429 | <property> |
430 | <name>layoutMargin</name> | 430 | <name>layoutMargin</name> |
431 | </property> | 431 | </property> |
432 | <property> | 432 | <property> |
433 | <name>layoutSpacing</name> | 433 | <name>layoutSpacing</name> |
434 | </property> | 434 | </property> |
435 | <vbox> | 435 | <vbox> |
436 | <property stdset="1"> | 436 | <property stdset="1"> |
437 | <name>margin</name> | 437 | <name>margin</name> |
438 | <number>3</number> | 438 | <number>3</number> |
439 | </property> | 439 | </property> |
440 | <property stdset="1"> | 440 | <property stdset="1"> |
441 | <name>spacing</name> | 441 | <name>spacing</name> |
442 | <number>3</number> | 442 | <number>3</number> |
443 | </property> | 443 | </property> |
444 | <widget> | 444 | <widget> |
445 | <class>QCheckBox</class> | 445 | <class>QCheckBox</class> |
446 | <property stdset="1"> | 446 | <property stdset="1"> |
447 | <name>name</name> | 447 | <name>name</name> |
448 | <cstring>auto_brightness</cstring> | 448 | <cstring>auto_brightness</cstring> |
449 | </property> | 449 | </property> |
450 | <property stdset="1"> | 450 | <property stdset="1"> |
451 | <name>text</name> | 451 | <name>text</name> |
452 | <string>Use light sensor</string> | 452 | <string>Use light sensor</string> |
453 | </property> | 453 | </property> |
454 | <property> | 454 | <property> |
455 | <name>whatsThis</name> | 455 | <name>whatsThis</name> |
456 | <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> | 456 | <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> |
457 | </property> | 457 | </property> |
458 | </widget> | 458 | </widget> |
459 | </vbox> | 459 | </vbox> |
460 | </widget> | 460 | </widget> |
461 | <spacer> | 461 | <spacer> |
462 | <property> | 462 | <property> |
463 | <name>name</name> | 463 | <name>name</name> |
464 | <cstring>Spacer4</cstring> | 464 | <cstring>Spacer4</cstring> |
465 | </property> | 465 | </property> |
466 | <property stdset="1"> | 466 | <property stdset="1"> |
467 | <name>orientation</name> | 467 | <name>orientation</name> |
468 | <enum>Vertical</enum> | 468 | <enum>Vertical</enum> |
469 | </property> | 469 | </property> |
470 | <property stdset="1"> | 470 | <property stdset="1"> |
471 | <name>sizeType</name> | 471 | <name>sizeType</name> |
472 | <enum>Expanding</enum> | 472 | <enum>Expanding</enum> |
473 | </property> | 473 | </property> |
474 | <property> | 474 | <property> |
475 | <name>sizeHint</name> | 475 | <name>sizeHint</name> |
476 | <size> | 476 | <size> |
477 | <width>20</width> | 477 | <width>20</width> |
478 | <height>20</height> | 478 | <height>20</height> |
479 | </size> | 479 | </size> |
480 | </property> | 480 | </property> |
481 | </spacer> | 481 | </spacer> |
482 | </vbox> | 482 | </vbox> |
483 | </widget> | 483 | </widget> |
484 | <widget> | 484 | <widget> |
485 | <class>QWidget</class> | 485 | <class>QWidget</class> |
486 | <property stdset="1"> | 486 | <property stdset="1"> |
487 | <name>name</name> | 487 | <name>name</name> |
488 | <cstring>tab</cstring> | 488 | <cstring>tab</cstring> |
489 | </property> | 489 | </property> |
490 | <attribute> | 490 | <attribute> |
491 | <name>title</name> | 491 | <name>title</name> |
492 | <string>on AC</string> | 492 | <string>on AC</string> |
493 | </attribute> | 493 | </attribute> |
494 | <vbox> | 494 | <vbox> |
495 | <property stdset="1"> | 495 | <property stdset="1"> |
496 | <name>margin</name> | 496 | <name>margin</name> |
497 | <number>3</number> | 497 | <number>3</number> |
498 | </property> | 498 | </property> |
499 | <property stdset="1"> | 499 | <property stdset="1"> |
500 | <name>spacing</name> | 500 | <name>spacing</name> |
501 | <number>3</number> | 501 | <number>3</number> |
502 | </property> | 502 | </property> |
503 | <widget> | 503 | <widget> |
504 | <class>QGroupBox</class> | 504 | <class>QGroupBox</class> |
505 | <property stdset="1"> | 505 | <property stdset="1"> |
506 | <name>name</name> | 506 | <name>name</name> |
507 | <cstring>GroupBox4</cstring> | 507 | <cstring>GroupBox4</cstring> |
508 | </property> | 508 | </property> |
509 | <property stdset="1"> | 509 | <property stdset="1"> |
510 | <name>enabled</name> | 510 | <name>enabled</name> |
511 | <bool>true</bool> | 511 | <bool>true</bool> |
512 | </property> | 512 | </property> |
513 | <property stdset="1"> | 513 | <property stdset="1"> |
514 | <name>title</name> | 514 | <name>title</name> |
515 | <string>General Settings</string> | 515 | <string>General Settings</string> |
516 | </property> | 516 | </property> |
517 | <property> | 517 | <property> |
518 | <name>layoutMargin</name> | 518 | <name>layoutMargin</name> |
519 | </property> | 519 | </property> |
520 | <property> | 520 | <property> |
521 | <name>layoutSpacing</name> | 521 | <name>layoutSpacing</name> |
522 | </property> | 522 | </property> |
523 | <vbox> | 523 | <vbox> |
524 | <property stdset="1"> | 524 | <property stdset="1"> |
525 | <name>margin</name> | 525 | <name>margin</name> |
526 | <number>3</number> | 526 | <number>3</number> |
527 | </property> | 527 | </property> |
528 | <property stdset="1"> | 528 | <property stdset="1"> |
529 | <name>spacing</name> | 529 | <name>spacing</name> |
530 | <number>3</number> | 530 | <number>3</number> |
531 | </property> | 531 | </property> |
532 | <widget> | 532 | <widget> |
533 | <class>QLayoutWidget</class> | 533 | <class>QLayoutWidget</class> |
534 | <property stdset="1"> | 534 | <property stdset="1"> |
535 | <name>name</name> | 535 | <name>name</name> |
536 | <cstring>Layout9_3</cstring> | 536 | <cstring>Layout9_3</cstring> |
537 | </property> | 537 | </property> |
538 | <grid> | 538 | <grid> |
539 | <property stdset="1"> | 539 | <property stdset="1"> |
540 | <name>margin</name> | 540 | <name>margin</name> |
541 | <number>0</number> | 541 | <number>0</number> |
542 | </property> | 542 | </property> |
543 | <property stdset="1"> | 543 | <property stdset="1"> |
544 | <name>spacing</name> | 544 | <name>spacing</name> |
545 | <number>6</number> | 545 | <number>6</number> |
546 | </property> | 546 | </property> |
547 | <widget row="2" column="0" > | 547 | <widget row="2" column="0" > |
548 | <class>QLabel</class> | 548 | <class>QLabel</class> |
549 | <property stdset="1"> | 549 | <property stdset="1"> |
550 | <name>name</name> | 550 | <name>name</name> |
551 | <cstring>TextLabel1_2_2_3</cstring> | 551 | <cstring>TextLabel1_2_2_3</cstring> |
552 | </property> | 552 | </property> |
553 | <property stdset="1"> | 553 | <property stdset="1"> |
554 | <name>text</name> | 554 | <name>text</name> |
555 | <string>Suspend after</string> | 555 | <string>Suspend after</string> |
556 | </property> | 556 | </property> |
557 | </widget> | 557 | </widget> |
558 | <widget row="0" column="1" > | 558 | <widget row="0" column="1" > |
559 | <class>QSpinBox</class> | 559 | <class>QSpinBox</class> |
560 | <property stdset="1"> | 560 | <property stdset="1"> |
561 | <name>name</name> | 561 | <name>name</name> |
562 | <cstring>interval_dim_ac_3</cstring> | 562 | <cstring>interval_dim_ac_3</cstring> |
563 | </property> | 563 | </property> |
564 | <property stdset="1"> | 564 | <property stdset="1"> |
565 | <name>suffix</name> | 565 | <name>suffix</name> |
566 | <string> seconds</string> | 566 | <string> seconds</string> |
567 | </property> | 567 | </property> |
568 | <property stdset="1"> | 568 | <property stdset="1"> |
569 | <name>buttonSymbols</name> | 569 | <name>buttonSymbols</name> |
570 | <enum>PlusMinus</enum> | 570 | <enum>PlusMinus</enum> |
571 | </property> | 571 | </property> |
572 | <property stdset="1"> | 572 | <property stdset="1"> |
573 | <name>maxValue</name> | 573 | <name>maxValue</name> |
574 | <number>3600</number> | 574 | <number>3600</number> |
575 | </property> | 575 | </property> |
576 | <property stdset="1"> | 576 | <property stdset="1"> |
577 | <name>minValue</name> | 577 | <name>minValue</name> |
578 | <number>10</number> | 578 | <number>10</number> |
579 | </property> | 579 | </property> |
580 | <property stdset="1"> | 580 | <property stdset="1"> |
581 | <name>lineStep</name> | 581 | <name>lineStep</name> |
582 | <number>15</number> | 582 | <number>15</number> |
583 | </property> | 583 | </property> |
584 | </widget> | 584 | </widget> |
585 | <widget row="2" column="1" > | 585 | <widget row="2" column="1" > |
586 | <class>QSpinBox</class> | 586 | <class>QSpinBox</class> |
587 | <property stdset="1"> | 587 | <property stdset="1"> |
588 | <name>name</name> | 588 | <name>name</name> |
589 | <cstring>interval_suspend_ac_3</cstring> | 589 | <cstring>interval_suspend_ac_3</cstring> |
590 | </property> | 590 | </property> |
591 | <property stdset="1"> | 591 | <property stdset="1"> |
592 | <name>suffix</name> | 592 | <name>suffix</name> |
593 | <string> seconds</string> | 593 | <string> seconds</string> |
594 | </property> | 594 | </property> |
595 | <property stdset="1"> | 595 | <property stdset="1"> |
596 | <name>buttonSymbols</name> | 596 | <name>buttonSymbols</name> |
597 | <enum>PlusMinus</enum> | 597 | <enum>PlusMinus</enum> |
598 | </property> | 598 | </property> |
599 | <property stdset="1"> | 599 | <property stdset="1"> |
600 | <name>maxValue</name> | 600 | <name>maxValue</name> |
601 | <number>3600</number> | 601 | <number>3600</number> |
602 | </property> | 602 | </property> |
603 | <property stdset="1"> | 603 | <property stdset="1"> |
604 | <name>minValue</name> | 604 | <name>minValue</name> |
605 | <number>10</number> | 605 | <number>10</number> |
606 | </property> | 606 | </property> |
607 | <property stdset="1"> | 607 | <property stdset="1"> |
608 | <name>lineStep</name> | 608 | <name>lineStep</name> |
609 | <number>15</number> | 609 | <number>15</number> |
610 | </property> | 610 | </property> |
611 | </widget> | 611 | </widget> |
612 | <widget row="1" column="1" > | 612 | <widget row="1" column="1" > |
613 | <class>QSpinBox</class> | 613 | <class>QSpinBox</class> |
614 | <property stdset="1"> | 614 | <property stdset="1"> |
615 | <name>name</name> | 615 | <name>name</name> |
616 | <cstring>interval_lightoff_ac_3</cstring> | 616 | <cstring>interval_lightoff_ac_3</cstring> |
617 | </property> | 617 | </property> |
618 | <property stdset="1"> | 618 | <property stdset="1"> |
619 | <name>suffix</name> | 619 | <name>suffix</name> |
620 | <string> seconds</string> | 620 | <string> seconds</string> |
621 | </property> | 621 | </property> |
622 | <property stdset="1"> | 622 | <property stdset="1"> |
623 | <name>buttonSymbols</name> | 623 | <name>buttonSymbols</name> |
624 | <enum>PlusMinus</enum> | 624 | <enum>PlusMinus</enum> |
625 | </property> | 625 | </property> |
626 | <property stdset="1"> | 626 | <property stdset="1"> |
627 | <name>maxValue</name> | 627 | <name>maxValue</name> |
628 | <number>3600</number> | 628 | <number>3600</number> |
629 | </property> | 629 | </property> |
630 | <property stdset="1"> | 630 | <property stdset="1"> |
631 | <name>minValue</name> | 631 | <name>minValue</name> |
632 | <number>10</number> | 632 | <number>10</number> |
633 | </property> | 633 | </property> |
634 | <property stdset="1"> | 634 | <property stdset="1"> |
635 | <name>lineStep</name> | 635 | <name>lineStep</name> |
636 | <number>15</number> | 636 | <number>15</number> |
637 | </property> | 637 | </property> |
638 | </widget> | 638 | </widget> |
639 | <widget row="1" column="0" > | 639 | <widget row="1" column="0" > |
640 | <class>QCheckBox</class> | 640 | <class>QCheckBox</class> |
641 | <property stdset="1"> | 641 | <property stdset="1"> |
642 | <name>name</name> | 642 | <name>name</name> |
643 | <cstring>screensaver_lightoff_ac_3</cstring> | 643 | <cstring>screensaver_lightoff_ac_3</cstring> |
644 | </property> | 644 | </property> |
645 | <property stdset="1"> | 645 | <property stdset="1"> |
646 | <name>sizePolicy</name> | 646 | <name>sizePolicy</name> |
647 | <sizepolicy> | 647 | <sizepolicy> |
648 | <hsizetype>1</hsizetype> | 648 | <hsizetype>1</hsizetype> |
649 | <vsizetype>0</vsizetype> | 649 | <vsizetype>0</vsizetype> |
650 | </sizepolicy> | 650 | </sizepolicy> |
651 | </property> | 651 | </property> |
652 | <property stdset="1"> | 652 | <property stdset="1"> |
653 | <name>text</name> | 653 | <name>text</name> |
654 | <string>Light off after</string> | 654 | <string>Light off after</string> |
655 | </property> | 655 | </property> |
656 | <property stdset="1"> | 656 | <property stdset="1"> |
657 | <name>checked</name> | 657 | <name>checked</name> |
658 | <bool>true</bool> | 658 | <bool>true</bool> |
659 | </property> | 659 | </property> |
660 | </widget> | 660 | </widget> |
661 | <widget row="0" column="0" > | 661 | <widget row="0" column="0" > |
662 | <class>QCheckBox</class> | 662 | <class>QCheckBox</class> |
663 | <property stdset="1"> | 663 | <property stdset="1"> |
664 | <name>name</name> | 664 | <name>name</name> |
665 | <cstring>screensaver_dim_ac_3</cstring> | 665 | <cstring>screensaver_dim_ac_3</cstring> |
666 | </property> | 666 | </property> |
667 | <property stdset="1"> | 667 | <property stdset="1"> |
668 | <name>sizePolicy</name> | 668 | <name>sizePolicy</name> |
669 | <sizepolicy> | 669 | <sizepolicy> |
670 | <hsizetype>1</hsizetype> | 670 | <hsizetype>1</hsizetype> |
671 | <vsizetype>0</vsizetype> | 671 | <vsizetype>0</vsizetype> |
672 | </sizepolicy> | 672 | </sizepolicy> |
673 | </property> | 673 | </property> |
674 | <property stdset="1"> | 674 | <property stdset="1"> |
675 | <name>text</name> | 675 | <name>text</name> |
676 | <string>Dim light after</string> | 676 | <string>Dim light after</string> |
677 | </property> | 677 | </property> |
678 | <property stdset="1"> | 678 | <property stdset="1"> |
679 | <name>checked</name> | 679 | <name>checked</name> |
680 | <bool>true</bool> | 680 | <bool>true</bool> |
681 | </property> | 681 | </property> |
682 | </widget> | 682 | </widget> |
683 | </grid> | 683 | </grid> |
684 | </widget> | 684 | </widget> |
685 | <widget> | 685 | <widget> |
686 | <class>QCheckBox</class> | 686 | <class>QCheckBox</class> |
687 | <property stdset="1"> | 687 | <property stdset="1"> |
688 | <name>name</name> | 688 | <name>name</name> |
689 | <cstring>LcdOffOnly_2_3</cstring> | 689 | <cstring>LcdOffOnly_2_3</cstring> |
690 | </property> | 690 | </property> |
691 | <property stdset="1"> | 691 | <property stdset="1"> |
692 | <name>text</name> | 692 | <name>text</name> |
693 | <string>Deactivate LCD only (does not suspend)</string> | 693 | <string>Deactivate LCD only (does not suspend)</string> |
694 | </property> | 694 | </property> |
695 | </widget> | 695 | </widget> |
696 | </vbox> | 696 | </vbox> |
697 | </widget> | 697 | </widget> |
698 | <widget> | 698 | <widget> |
699 | <class>QGroupBox</class> | 699 | <class>QGroupBox</class> |
700 | <property stdset="1"> | 700 | <property stdset="1"> |
701 | <name>name</name> | 701 | <name>name</name> |
702 | <cstring>GroupBox8</cstring> | 702 | <cstring>GroupBox8</cstring> |
703 | </property> | 703 | </property> |
704 | <property stdset="1"> | 704 | <property stdset="1"> |
705 | <name>title</name> | 705 | <name>title</name> |
706 | <string>Backlight</string> | 706 | <string>Backlight</string> |
707 | </property> | 707 | </property> |
708 | <property> | 708 | <property> |
709 | <name>layoutMargin</name> | 709 | <name>layoutMargin</name> |
710 | </property> | 710 | </property> |
711 | <property> | 711 | <property> |
712 | <name>layoutSpacing</name> | 712 | <name>layoutSpacing</name> |
713 | </property> | 713 | </property> |
714 | <vbox> | 714 | <vbox> |
715 | <property stdset="1"> | 715 | <property stdset="1"> |
716 | <name>margin</name> | 716 | <name>margin</name> |
717 | <number>3</number> | 717 | <number>3</number> |
718 | </property> | 718 | </property> |
719 | <property stdset="1"> | 719 | <property stdset="1"> |
720 | <name>spacing</name> | 720 | <name>spacing</name> |
721 | <number>3</number> | 721 | <number>3</number> |
722 | </property> | 722 | </property> |
723 | <widget> | 723 | <widget> |
724 | <class>QSlider</class> | 724 | <class>QSlider</class> |
725 | <property stdset="1"> | 725 | <property stdset="1"> |
726 | <name>name</name> | 726 | <name>name</name> |
727 | <cstring>brightness_ac_3</cstring> | 727 | <cstring>brightness_ac_3</cstring> |
728 | </property> | 728 | </property> |
729 | <property stdset="1"> | 729 | <property stdset="1"> |
730 | <name>minValue</name> | 730 | <name>minValue</name> |
731 | <number>0</number> | 731 | <number>0</number> |
732 | </property> | 732 | </property> |
733 | <property stdset="1"> | 733 | <property stdset="1"> |
734 | <name>maxValue</name> | 734 | <name>maxValue</name> |
735 | <number>255</number> | 735 | <number>255</number> |
736 | </property> | 736 | </property> |
737 | <property stdset="1"> | 737 | <property stdset="1"> |
738 | <name>lineStep</name> | 738 | <name>lineStep</name> |
739 | <number>16</number> | 739 | <number>16</number> |
740 | </property> | 740 | </property> |
741 | <property stdset="1"> | 741 | <property stdset="1"> |
742 | <name>pageStep</name> | 742 | <name>pageStep</name> |
743 | <number>16</number> | 743 | <number>16</number> |
744 | </property> | 744 | </property> |
745 | <property stdset="1"> | 745 | <property stdset="1"> |
746 | <name>value</name> | 746 | <name>value</name> |
747 | <number>255</number> | 747 | <number>255</number> |
748 | </property> | 748 | </property> |
749 | <property stdset="1"> | 749 | <property stdset="1"> |
750 | <name>tracking</name> | 750 | <name>tracking</name> |
751 | <bool>true</bool> | 751 | <bool>true</bool> |
752 | </property> | 752 | </property> |
753 | <property stdset="1"> | 753 | <property stdset="1"> |
754 | <name>orientation</name> | 754 | <name>orientation</name> |
755 | <enum>Horizontal</enum> | 755 | <enum>Horizontal</enum> |
756 | </property> | 756 | </property> |
757 | <property stdset="1"> | 757 | <property stdset="1"> |
758 | <name>tickmarks</name> | 758 | <name>tickmarks</name> |
759 | <enum>Right</enum> | 759 | <enum>Right</enum> |
760 | </property> | 760 | </property> |
761 | <property stdset="1"> | ||
762 | <name>tickInterval</name> | ||
763 | <number>32</number> | ||
764 | </property> | ||
765 | </widget> | 761 | </widget> |
766 | <widget> | 762 | <widget> |
767 | <class>QLayoutWidget</class> | 763 | <class>QLayoutWidget</class> |
768 | <property stdset="1"> | 764 | <property stdset="1"> |
769 | <name>name</name> | 765 | <name>name</name> |
770 | <cstring>Layout20</cstring> | 766 | <cstring>Layout20</cstring> |
771 | </property> | 767 | </property> |
772 | <hbox> | 768 | <hbox> |
773 | <property stdset="1"> | 769 | <property stdset="1"> |
774 | <name>margin</name> | 770 | <name>margin</name> |
775 | <number>0</number> | 771 | <number>0</number> |
776 | </property> | 772 | </property> |
777 | <property stdset="1"> | 773 | <property stdset="1"> |
778 | <name>spacing</name> | 774 | <name>spacing</name> |
779 | <number>6</number> | 775 | <number>6</number> |
780 | </property> | 776 | </property> |
781 | <widget> | 777 | <widget> |
782 | <class>QLabel</class> | 778 | <class>QLabel</class> |
783 | <property stdset="1"> | 779 | <property stdset="1"> |
784 | <name>name</name> | 780 | <name>name</name> |
785 | <cstring>PixmapLabel2_2_3</cstring> | 781 | <cstring>PixmapLabel2_2_3</cstring> |
786 | </property> | 782 | </property> |
787 | <property stdset="1"> | 783 | <property stdset="1"> |
788 | <name>pixmap</name> | 784 | <name>pixmap</name> |
789 | <pixmap>image2</pixmap> | 785 | <pixmap>image2</pixmap> |
790 | </property> | 786 | </property> |
791 | <property stdset="1"> | 787 | <property stdset="1"> |
792 | <name>scaledContents</name> | 788 | <name>scaledContents</name> |
793 | <bool>false</bool> | 789 | <bool>false</bool> |
794 | </property> | 790 | </property> |
795 | </widget> | 791 | </widget> |
796 | <widget> | 792 | <widget> |
797 | <class>QLabel</class> | 793 | <class>QLabel</class> |
798 | <property stdset="1"> | 794 | <property stdset="1"> |
799 | <name>name</name> | 795 | <name>name</name> |
800 | <cstring>TextLabel6</cstring> | 796 | <cstring>TextLabel6</cstring> |
801 | </property> | 797 | </property> |
802 | <property stdset="1"> | 798 | <property stdset="1"> |
803 | <name>text</name> | 799 | <name>text</name> |
804 | <string>Off</string> | 800 | <string>Off</string> |
805 | </property> | 801 | </property> |
806 | </widget> | 802 | </widget> |
807 | <spacer> | 803 | <spacer> |
808 | <property> | 804 | <property> |
809 | <name>name</name> | 805 | <name>name</name> |
810 | <cstring>Spacer3</cstring> | 806 | <cstring>Spacer3</cstring> |
811 | </property> | 807 | </property> |
812 | <property stdset="1"> | 808 | <property stdset="1"> |
813 | <name>orientation</name> | 809 | <name>orientation</name> |
814 | <enum>Horizontal</enum> | 810 | <enum>Horizontal</enum> |
815 | </property> | 811 | </property> |
816 | <property stdset="1"> | 812 | <property stdset="1"> |
817 | <name>sizeType</name> | 813 | <name>sizeType</name> |
818 | <enum>Expanding</enum> | 814 | <enum>Expanding</enum> |
819 | </property> | 815 | </property> |
820 | <property> | 816 | <property> |
821 | <name>sizeHint</name> | 817 | <name>sizeHint</name> |
822 | <size> | 818 | <size> |
823 | <width>20</width> | 819 | <width>20</width> |
824 | <height>20</height> | 820 | <height>20</height> |
825 | </size> | 821 | </size> |
826 | </property> | 822 | </property> |
827 | </spacer> | 823 | </spacer> |
828 | <widget> | 824 | <widget> |
829 | <class>QLabel</class> | 825 | <class>QLabel</class> |
830 | <property stdset="1"> | 826 | <property stdset="1"> |
831 | <name>name</name> | 827 | <name>name</name> |
832 | <cstring>TextLabel7</cstring> | 828 | <cstring>TextLabel7</cstring> |
833 | </property> | 829 | </property> |
834 | <property stdset="1"> | 830 | <property stdset="1"> |
835 | <name>text</name> | 831 | <name>text</name> |
836 | <string>Full</string> | 832 | <string>Full</string> |
837 | </property> | 833 | </property> |
838 | </widget> | 834 | </widget> |
839 | <widget> | 835 | <widget> |
840 | <class>QLabel</class> | 836 | <class>QLabel</class> |
841 | <property stdset="1"> | 837 | <property stdset="1"> |
842 | <name>name</name> | 838 | <name>name</name> |
843 | <cstring>PixmapLabel1_2_3</cstring> | 839 | <cstring>PixmapLabel1_2_3</cstring> |
844 | </property> | 840 | </property> |
845 | <property stdset="1"> | 841 | <property stdset="1"> |
846 | <name>pixmap</name> | 842 | <name>pixmap</name> |
847 | <pixmap>image1</pixmap> | 843 | <pixmap>image1</pixmap> |
848 | </property> | 844 | </property> |
849 | <property stdset="1"> | 845 | <property stdset="1"> |
850 | <name>scaledContents</name> | 846 | <name>scaledContents</name> |
851 | <bool>false</bool> | 847 | <bool>false</bool> |
852 | </property> | 848 | </property> |
853 | </widget> | 849 | </widget> |
854 | </hbox> | 850 | </hbox> |
855 | </widget> | 851 | </widget> |
856 | </vbox> | 852 | </vbox> |
857 | </widget> | 853 | </widget> |
858 | <widget> | 854 | <widget> |
859 | <class>QGroupBox</class> | 855 | <class>QGroupBox</class> |
860 | <property stdset="1"> | 856 | <property stdset="1"> |
861 | <name>name</name> | 857 | <name>name</name> |
862 | <cstring>IpaqGroupBoxAC</cstring> | 858 | <cstring>IpaqGroupBoxAC</cstring> |
863 | </property> | 859 | </property> |
864 | <property stdset="1"> | 860 | <property stdset="1"> |
865 | <name>title</name> | 861 | <name>title</name> |
866 | <string>iPAQ</string> | 862 | <string>iPAQ</string> |
867 | </property> | 863 | </property> |
868 | <property> | 864 | <property> |
869 | <name>layoutMargin</name> | 865 | <name>layoutMargin</name> |
870 | </property> | 866 | </property> |
871 | <property> | 867 | <property> |
872 | <name>layoutSpacing</name> | 868 | <name>layoutSpacing</name> |
873 | </property> | 869 | </property> |
874 | <vbox> | 870 | <vbox> |
875 | <property stdset="1"> | 871 | <property stdset="1"> |
876 | <name>margin</name> | 872 | <name>margin</name> |
877 | <number>3</number> | 873 | <number>3</number> |
878 | </property> | 874 | </property> |
879 | <property stdset="1"> | 875 | <property stdset="1"> |
880 | <name>spacing</name> | 876 | <name>spacing</name> |
881 | <number>3</number> | 877 | <number>3</number> |
882 | </property> | 878 | </property> |
883 | <widget> | 879 | <widget> |
884 | <class>QCheckBox</class> | 880 | <class>QCheckBox</class> |
885 | <property stdset="1"> | 881 | <property stdset="1"> |
886 | <name>name</name> | 882 | <name>name</name> |
887 | <cstring>auto_brightness_ac_3</cstring> | 883 | <cstring>auto_brightness_ac_3</cstring> |
888 | </property> | 884 | </property> |
889 | <property stdset="1"> | 885 | <property stdset="1"> |
890 | <name>text</name> | 886 | <name>text</name> |
891 | <string>Use light sensor</string> | 887 | <string>Use light sensor</string> |
892 | </property> | 888 | </property> |
893 | <property> | 889 | <property> |
894 | <name>whatsThis</name> | 890 | <name>whatsThis</name> |
895 | <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> | 891 | <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> |
896 | </property> | 892 | </property> |
897 | </widget> | 893 | </widget> |
898 | </vbox> | 894 | </vbox> |
899 | </widget> | 895 | </widget> |
900 | <spacer> | 896 | <spacer> |
901 | <property> | 897 | <property> |
902 | <name>name</name> | 898 | <name>name</name> |
903 | <cstring>Spacer5</cstring> | 899 | <cstring>Spacer5</cstring> |
904 | </property> | 900 | </property> |
905 | <property stdset="1"> | 901 | <property stdset="1"> |
906 | <name>orientation</name> | 902 | <name>orientation</name> |
907 | <enum>Vertical</enum> | 903 | <enum>Vertical</enum> |
908 | </property> | 904 | </property> |
909 | <property stdset="1"> | 905 | <property stdset="1"> |
910 | <name>sizeType</name> | 906 | <name>sizeType</name> |
911 | <enum>Expanding</enum> | 907 | <enum>Expanding</enum> |
912 | </property> | 908 | </property> |
913 | <property> | 909 | <property> |
914 | <name>sizeHint</name> | 910 | <name>sizeHint</name> |
915 | <size> | 911 | <size> |
916 | <width>20</width> | 912 | <width>20</width> |
917 | <height>20</height> | 913 | <height>20</height> |
918 | </size> | 914 | </size> |
919 | </property> | 915 | </property> |
920 | </spacer> | 916 | </spacer> |
921 | </vbox> | 917 | </vbox> |
922 | </widget> | 918 | </widget> |
923 | <widget> | 919 | <widget> |
924 | <class>QWidget</class> | 920 | <class>QWidget</class> |
925 | <property stdset="1"> | 921 | <property stdset="1"> |
926 | <name>name</name> | 922 | <name>name</name> |
927 | <cstring>tab</cstring> | 923 | <cstring>tab</cstring> |
928 | </property> | 924 | </property> |
929 | <attribute> | 925 | <attribute> |
930 | <name>title</name> | 926 | <name>title</name> |
931 | <string>Advanced Settings</string> | 927 | <string>Advanced Settings</string> |
932 | </attribute> | 928 | </attribute> |
933 | <vbox> | 929 | <vbox> |
934 | <property stdset="1"> | 930 | <property stdset="1"> |
935 | <name>margin</name> | 931 | <name>margin</name> |
936 | <number>3</number> | 932 | <number>3</number> |
937 | </property> | 933 | </property> |
938 | <property stdset="1"> | 934 | <property stdset="1"> |
939 | <name>spacing</name> | 935 | <name>spacing</name> |
940 | <number>3</number> | 936 | <number>3</number> |
941 | </property> | 937 | </property> |
942 | <widget> | 938 | <widget> |
943 | <class>QGroupBox</class> | 939 | <class>QGroupBox</class> |
944 | <property stdset="1"> | 940 | <property stdset="1"> |
945 | <name>name</name> | 941 | <name>name</name> |
946 | <cstring>GroupBox5</cstring> | 942 | <cstring>GroupBox5</cstring> |
947 | </property> | 943 | </property> |
948 | <property stdset="1"> | 944 | <property stdset="1"> |
949 | <name>title</name> | 945 | <name>title</name> |
950 | <string>Warnings</string> | 946 | <string>Warnings</string> |
951 | </property> | 947 | </property> |
952 | <property> | 948 | <property> |
953 | <name>layoutMargin</name> | 949 | <name>layoutMargin</name> |
954 | </property> | 950 | </property> |
955 | <property> | 951 | <property> |
956 | <name>layoutSpacing</name> | 952 | <name>layoutSpacing</name> |
957 | </property> | 953 | </property> |
958 | <vbox> | 954 | <vbox> |
959 | <property stdset="1"> | 955 | <property stdset="1"> |
960 | <name>margin</name> | 956 | <name>margin</name> |
961 | <number>4</number> | 957 | <number>4</number> |
962 | </property> | 958 | </property> |
963 | <property stdset="1"> | 959 | <property stdset="1"> |
964 | <name>spacing</name> | 960 | <name>spacing</name> |
965 | <number>3</number> | 961 | <number>3</number> |
966 | </property> | 962 | </property> |
967 | <widget> | 963 | <widget> |
968 | <class>QLayoutWidget</class> | 964 | <class>QLayoutWidget</class> |
969 | <property stdset="1"> | 965 | <property stdset="1"> |
970 | <name>name</name> | 966 | <name>name</name> |
971 | <cstring>Layout18</cstring> | 967 | <cstring>Layout18</cstring> |
972 | </property> | 968 | </property> |
973 | <grid> | 969 | <grid> |
974 | <property stdset="1"> | 970 | <property stdset="1"> |
975 | <name>margin</name> | 971 | <name>margin</name> |
976 | <number>0</number> | 972 | <number>0</number> |
977 | </property> | 973 | </property> |
978 | <property stdset="1"> | 974 | <property stdset="1"> |
979 | <name>spacing</name> | 975 | <name>spacing</name> |
980 | <number>6</number> | 976 | <number>6</number> |
981 | </property> | 977 | </property> |
982 | <widget row="0" column="0" > | 978 | <widget row="0" column="0" > |
983 | <class>QLabel</class> | 979 | <class>QLabel</class> |
984 | <property stdset="1"> | 980 | <property stdset="1"> |
985 | <name>name</name> | 981 | <name>name</name> |
986 | <cstring>TextLabel1</cstring> | 982 | <cstring>TextLabel1</cstring> |
987 | </property> | 983 | </property> |
988 | <property stdset="1"> | 984 | <property stdset="1"> |
989 | <name>text</name> | 985 | <name>text</name> |
990 | <string>Low power warning | 986 | <string>Low power warning |
991 | interval</string> | 987 | interval</string> |
992 | </property> | 988 | </property> |
993 | <property stdset="1"> | 989 | <property stdset="1"> |
994 | <name>alignment</name> | 990 | <name>alignment</name> |
995 | <set>WordBreak|AlignVCenter|AlignLeft</set> | 991 | <set>WordBreak|AlignVCenter|AlignLeft</set> |
996 | </property> | 992 | </property> |
997 | <property> | 993 | <property> |
998 | <name>wordwrap</name> | 994 | <name>wordwrap</name> |
999 | </property> | 995 | </property> |
1000 | </widget> | 996 | </widget> |
1001 | <widget row="1" column="1" > | 997 | <widget row="1" column="1" > |
1002 | <class>QSpinBox</class> | 998 | <class>QSpinBox</class> |
1003 | <property stdset="1"> | 999 | <property stdset="1"> |
1004 | <name>name</name> | 1000 | <name>name</name> |
1005 | <cstring>lowSpinBox</cstring> | 1001 | <cstring>lowSpinBox</cstring> |
1006 | </property> | 1002 | </property> |
1007 | <property stdset="1"> | 1003 | <property stdset="1"> |
1008 | <name>suffix</name> | 1004 | <name>suffix</name> |
1009 | <string> %</string> | 1005 | <string> %</string> |
1010 | </property> | 1006 | </property> |
1011 | <property stdset="1"> | 1007 | <property stdset="1"> |
1012 | <name>maxValue</name> | 1008 | <name>maxValue</name> |
1013 | <number>80</number> | 1009 | <number>80</number> |
1014 | </property> | 1010 | </property> |
1015 | <property stdset="1"> | 1011 | <property stdset="1"> |
1016 | <name>minValue</name> | 1012 | <name>minValue</name> |
1017 | <number>2</number> | 1013 | <number>2</number> |
1018 | </property> | 1014 | </property> |
1019 | <property> | 1015 | <property> |
1020 | <name>whatsThis</name> | 1016 | <name>whatsThis</name> |
1021 | <string>At what battery level should the low power warning pop up</string> | 1017 | <string>At what battery level should the low power warning pop up</string> |
1022 | </property> | 1018 | </property> |
1023 | </widget> | 1019 | </widget> |
1024 | <widget row="0" column="1" > | 1020 | <widget row="0" column="1" > |
1025 | <class>QSpinBox</class> | 1021 | <class>QSpinBox</class> |
1026 | <property stdset="1"> | 1022 | <property stdset="1"> |
1027 | <name>name</name> | 1023 | <name>name</name> |
1028 | <cstring>warnintervalBox</cstring> | 1024 | <cstring>warnintervalBox</cstring> |
1029 | </property> | 1025 | </property> |
1030 | <property stdset="1"> | 1026 | <property stdset="1"> |
1031 | <name>suffix</name> | 1027 | <name>suffix</name> |
1032 | <string> seconds</string> | 1028 | <string> seconds</string> |
1033 | </property> | 1029 | </property> |
1034 | <property stdset="1"> | 1030 | <property stdset="1"> |
1035 | <name>maxValue</name> | 1031 | <name>maxValue</name> |
1036 | <number>60</number> | 1032 | <number>60</number> |
1037 | </property> | 1033 | </property> |
1038 | <property stdset="1"> | 1034 | <property stdset="1"> |
1039 | <name>minValue</name> | 1035 | <name>minValue</name> |
1040 | <number>5</number> | 1036 | <number>5</number> |
1041 | </property> | 1037 | </property> |
1042 | <property> | 1038 | <property> |
1043 | <name>whatsThis</name> | 1039 | <name>whatsThis</name> |
1044 | <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string> | 1040 | <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string> |
1045 | </property> | 1041 | </property> |
1046 | </widget> | 1042 | </widget> |
1047 | <widget row="2" column="1" > | 1043 | <widget row="2" column="1" > |
1048 | <class>QSpinBox</class> | 1044 | <class>QSpinBox</class> |
1049 | <property stdset="1"> | 1045 | <property stdset="1"> |
1050 | <name>name</name> | 1046 | <name>name</name> |
1051 | <cstring>criticalSpinBox</cstring> | 1047 | <cstring>criticalSpinBox</cstring> |
1052 | </property> | 1048 | </property> |
1053 | <property stdset="1"> | 1049 | <property stdset="1"> |
1054 | <name>prefix</name> | 1050 | <name>prefix</name> |
1055 | <string></string> | 1051 | <string></string> |
1056 | </property> | 1052 | </property> |
1057 | <property stdset="1"> | 1053 | <property stdset="1"> |
1058 | <name>suffix</name> | 1054 | <name>suffix</name> |
1059 | <string> %</string> | 1055 | <string> %</string> |
1060 | </property> | 1056 | </property> |
1061 | <property stdset="1"> | 1057 | <property stdset="1"> |
1062 | <name>maxValue</name> | 1058 | <name>maxValue</name> |
1063 | <number>80</number> | 1059 | <number>80</number> |
1064 | </property> | 1060 | </property> |
1065 | <property stdset="1"> | 1061 | <property stdset="1"> |
1066 | <name>minValue</name> | 1062 | <name>minValue</name> |
1067 | <number>2</number> | 1063 | <number>2</number> |
1068 | </property> | 1064 | </property> |
1069 | <property> | 1065 | <property> |
1070 | <name>whatsThis</name> | 1066 | <name>whatsThis</name> |
1071 | <string>At what battery level should the critical power warning pop up</string> | 1067 | <string>At what battery level should the critical power warning pop up</string> |
1072 | </property> | 1068 | </property> |
1073 | </widget> | 1069 | </widget> |
1074 | <widget row="1" column="0" > | 1070 | <widget row="1" column="0" > |
1075 | <class>QLabel</class> | 1071 | <class>QLabel</class> |
1076 | <property stdset="1"> | 1072 | <property stdset="1"> |
1077 | <name>name</name> | 1073 | <name>name</name> |
1078 | <cstring>TextLabel2</cstring> | 1074 | <cstring>TextLabel2</cstring> |
1079 | </property> | 1075 | </property> |
1080 | <property stdset="1"> | 1076 | <property stdset="1"> |
1081 | <name>text</name> | 1077 | <name>text</name> |
1082 | <string>very low battery | 1078 | <string>very low battery |
1083 | warning at</string> | 1079 | warning at</string> |
1084 | </property> | 1080 | </property> |
1085 | </widget> | 1081 | </widget> |
1086 | <widget row="2" column="0" > | 1082 | <widget row="2" column="0" > |
1087 | <class>QLabel</class> | 1083 | <class>QLabel</class> |
1088 | <property stdset="1"> | 1084 | <property stdset="1"> |
1089 | <name>name</name> | 1085 | <name>name</name> |
1090 | <cstring>TextLabel3</cstring> | 1086 | <cstring>TextLabel3</cstring> |
1091 | </property> | 1087 | </property> |
1092 | <property stdset="1"> | 1088 | <property stdset="1"> |
1093 | <name>text</name> | 1089 | <name>text</name> |
1094 | <string>critical power | 1090 | <string>critical power |
1095 | warning at</string> | 1091 | warning at</string> |
1096 | </property> | 1092 | </property> |
1097 | </widget> | 1093 | </widget> |
1098 | </grid> | 1094 | </grid> |
1099 | </widget> | 1095 | </widget> |
1100 | </vbox> | 1096 | </vbox> |
1101 | </widget> | 1097 | </widget> |
1102 | <widget> | 1098 | <widget> |
1103 | <class>QGroupBox</class> | 1099 | <class>QGroupBox</class> |
1104 | <property stdset="1"> | 1100 | <property stdset="1"> |
1105 | <name>name</name> | 1101 | <name>name</name> |
1106 | <cstring>LightSensorGroupBox</cstring> | 1102 | <cstring>LightSensorGroupBox</cstring> |
1107 | </property> | 1103 | </property> |
1108 | <property stdset="1"> | 1104 | <property stdset="1"> |
1109 | <name>title</name> | 1105 | <name>title</name> |
1110 | <string>iPAQ Light Sensor (127 steps)</string> | 1106 | <string>iPAQ Light Sensor (127 steps)</string> |
1111 | </property> | 1107 | </property> |
1112 | <property> | 1108 | <property> |
1113 | <name>layoutMargin</name> | 1109 | <name>layoutMargin</name> |
1114 | </property> | 1110 | </property> |
1115 | <property> | 1111 | <property> |
1116 | <name>layoutSpacing</name> | 1112 | <name>layoutSpacing</name> |
1117 | </property> | 1113 | </property> |
1118 | <vbox> | 1114 | <vbox> |
1119 | <property stdset="1"> | 1115 | <property stdset="1"> |
1120 | <name>margin</name> | 1116 | <name>margin</name> |
1121 | <number>3</number> | 1117 | <number>3</number> |
1122 | </property> | 1118 | </property> |
1123 | <property stdset="1"> | 1119 | <property stdset="1"> |
1124 | <name>spacing</name> | 1120 | <name>spacing</name> |
1125 | <number>3</number> | 1121 | <number>3</number> |
1126 | </property> | 1122 | </property> |
1127 | <widget> | 1123 | <widget> |
1128 | <class>QLayoutWidget</class> | 1124 | <class>QLayoutWidget</class> |
1129 | <property stdset="1"> | 1125 | <property stdset="1"> |
1130 | <name>name</name> | 1126 | <name>name</name> |
1131 | <cstring>Layout7</cstring> | 1127 | <cstring>Layout7</cstring> |
1132 | </property> | 1128 | </property> |
1133 | <hbox> | 1129 | <hbox> |
1134 | <property stdset="1"> | 1130 | <property stdset="1"> |
1135 | <name>margin</name> | 1131 | <name>margin</name> |
1136 | <number>0</number> | 1132 | <number>0</number> |
1137 | </property> | 1133 | </property> |
1138 | <property stdset="1"> | 1134 | <property stdset="1"> |
1139 | <name>spacing</name> | 1135 | <name>spacing</name> |
1140 | <number>6</number> | 1136 | <number>6</number> |
1141 | </property> | 1137 | </property> |
1142 | <widget> | 1138 | <widget> |
1143 | <class>QLabel</class> | 1139 | <class>QLabel</class> |
1144 | <property stdset="1"> | 1140 | <property stdset="1"> |
1145 | <name>name</name> | 1141 | <name>name</name> |
1146 | <cstring>TextLabel9</cstring> | 1142 | <cstring>TextLabel9</cstring> |
1147 | </property> | 1143 | </property> |
1148 | <property stdset="1"> | 1144 | <property stdset="1"> |