author | mickeyl <mickeyl> | 2003-12-29 16:52:29 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-29 16:52:29 (UTC) |
commit | 2ecab614a6b91658b1608c62134cd14e257e55b7 (patch) (unidiff) | |
tree | 806d351238f4719f0c4ef6a720d9ff4e008003ea | |
parent | 8224dfc07a698d4c40cb240d315dc81b67512015 (diff) | |
download | opie-2ecab614a6b91658b1608c62134cd14e257e55b7.zip opie-2ecab614a6b91658b1608c62134cd14e257e55b7.tar.gz opie-2ecab614a6b91658b1608c62134cd14e257e55b7.tar.bz2 |
- add customization of the action to take when closing the hinge
- hide hinge customization on models which doesn't support that
- hide frequency label on models which doesn't support changing the CPU frequency
-rw-r--r-- | core/settings/light-and-power/light.cpp | 64 | ||||
-rw-r--r-- | core/settings/light-and-power/light.h | 1 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 300 |
3 files changed, 236 insertions, 129 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 6115178..d6d09a1 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -1,281 +1,315 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. Copyright (c) 2002 Maximilian Reiss <harlekin@handhelds.org> | 3 | =. Copyright (c) 2002 Maximilian Reiss <harlekin@handhelds.org> |
4 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> | 4 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "light.h" | 29 | #include "light.h" |
30 | 30 | ||
31 | #include <qpe/config.h> | 31 | #include <qpe/config.h> |
32 | #include <qpe/power.h> | 32 | #include <qpe/power.h> |
33 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 33 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
34 | #include <qpe/qcopenvelope_qws.h> | 34 | #include <qpe/qcopenvelope_qws.h> |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | #include <qlabel.h> | ||
37 | #include <qcheckbox.h> | 38 | #include <qcheckbox.h> |
38 | #include <qtabwidget.h> | 39 | #include <qtabwidget.h> |
39 | #include <qslider.h> | 40 | #include <qslider.h> |
40 | #include <qspinbox.h> | 41 | #include <qspinbox.h> |
41 | #include <qpushbutton.h> | 42 | #include <qpushbutton.h> |
42 | #include <qgroupbox.h> | 43 | #include <qgroupbox.h> |
43 | #include <qcombobox.h> | 44 | #include <qcombobox.h> |
44 | 45 | ||
45 | #include <opie/odevice.h> | 46 | #include <opie/odevice.h> |
46 | 47 | ||
47 | #include "sensor.h" | 48 | #include "sensor.h" |
48 | 49 | ||
49 | using namespace Opie; | 50 | using namespace Opie; |
50 | 51 | ||
51 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | 52 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) |
52 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) | 53 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) |
53 | { | 54 | { |
54 | m_bres = ODevice::inst ( )-> displayBrightnessResolution ( ); | 55 | m_bres = ODevice::inst ( )-> displayBrightnessResolution ( ); |
55 | m_cres = ODevice::inst ( )-> displayContrastResolution ( ); | 56 | m_cres = ODevice::inst ( )-> displayContrastResolution ( ); |
56 | 57 | ||
58 | // check whether to show the light sensor stuff | ||
59 | |||
57 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { | 60 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { |
58 | auto_brightness-> hide ( ); | 61 | auto_brightness-> hide ( ); |
59 | CalibrateLightSensor-> hide ( ); | 62 | CalibrateLightSensor-> hide ( ); |
60 | auto_brightness_ac-> hide ( ); | 63 | auto_brightness_ac-> hide ( ); |
61 | CalibrateLightSensor_ac-> hide ( ); | 64 | CalibrateLightSensor_ac-> hide ( ); |
62 | } | 65 | } |
66 | |||
67 | // check whether to show the contrast stuff | ||
68 | |||
63 | if (m_cres) { | 69 | if (m_cres) { |
64 | GroupLight->setTitle(tr("Backlight && Contrast")); | 70 | GroupLight->setTitle(tr("Backlight && Contrast")); |
65 | GroupLight_ac->setTitle(GroupLight->title()); | 71 | GroupLight_ac->setTitle(GroupLight->title()); |
66 | } else { | 72 | } else { |
67 | contrast->hide(); | 73 | contrast->hide(); |
68 | contrast_ac->hide(); | 74 | contrast_ac->hide(); |
69 | } | 75 | } |
70 | 76 | ||
77 | // check whether to show the cpu frequency stuff | ||
78 | |||
71 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); | 79 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); |
72 | if ( freq.count() ) { | 80 | if ( freq.count() ) { |
73 | frequency->insertStrList( freq ); | 81 | frequency->insertStrList( freq ); |
74 | frequency_ac->insertStrList( freq ); | 82 | frequency_ac->insertStrList( freq ); |
75 | } else { | 83 | } else { |
84 | frequencyLabel->hide(); | ||
76 | frequency->hide(); | 85 | frequency->hide(); |
86 | frequencyLabel_ac->hide(); | ||
77 | frequency_ac->hide(); | 87 | frequency_ac->hide(); |
78 | } | 88 | } |
79 | 89 | ||
90 | // check whether to show the hinge action stuff | ||
91 | |||
92 | if ( !ODevice::inst()->hasHingeSensor() ) { | ||
93 | closeHingeLabel->hide(); | ||
94 | closeHingeAction->hide(); | ||
95 | closeHingeLabel_ac->hide(); | ||
96 | closeHingeAction_ac->hide(); | ||
97 | } | ||
98 | |||
80 | Config config ( "apm" ); | 99 | Config config ( "apm" ); |
81 | config. setGroup ( "Battery" ); | 100 | config. setGroup ( "Battery" ); |
82 | 101 | ||
83 | // battery spinboxes | 102 | // battery spinboxes |
84 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 30 )); | 103 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 30 )); |
85 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 20 )); | 104 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 20 )); |
86 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); | 105 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); |
87 | 106 | ||
88 | // battery check and slider | 107 | // battery check and slider |
89 | LcdOffOnly->setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 108 | LcdOffOnly->setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
90 | 109 | ||
91 | // CPU frequency | 110 | // CPU frequency |
92 | frequency->setCurrentItem( config.readNumEntry("Freq", 0) ); | 111 | frequency->setCurrentItem( config.readNumEntry("Freq", 0) ); |
93 | 112 | ||
94 | int bright = config. readNumEntry ( "Brightness", 127 ); | 113 | // hinge action |
114 | closeHingeAction->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); | ||
115 | |||
116 | int bright = config. readNumEntry ( "Brightness", 127 ); | ||
95 | int contr = m_oldcontrast = config. readNumEntry ( "Contrast", 127 ); | 117 | int contr = m_oldcontrast = config. readNumEntry ( "Contrast", 127 ); |
96 | brightness-> setTickInterval ( QMAX( 16, 256 / m_bres )); | 118 | brightness-> setTickInterval ( QMAX( 16, 256 / m_bres )); |
97 | brightness-> setLineStep ( QMAX( 1, 256 / m_bres )); | 119 | brightness-> setLineStep ( QMAX( 1, 256 / m_bres )); |
98 | brightness-> setPageStep ( QMAX( 1, 256 / m_bres )); | 120 | brightness-> setPageStep ( QMAX( 1, 256 / m_bres )); |
99 | brightness-> setValue ( bright ); | 121 | brightness-> setValue ( bright ); |
100 | 122 | ||
101 | if (m_cres) { | 123 | if (m_cres) { |
102 | contrast-> setTickInterval ( QMAX( 16, 256 / m_cres )); | 124 | contrast-> setTickInterval ( QMAX( 16, 256 / m_cres )); |
103 | contrast-> setLineStep ( QMAX( 1, 256 / m_cres )); | 125 | contrast-> setLineStep ( QMAX( 1, 256 / m_cres )); |
104 | contrast-> setPageStep ( QMAX( 1, 256 / m_cres )); | 126 | contrast-> setPageStep ( QMAX( 1, 256 / m_cres )); |
105 | contrast-> setValue ( contr ); | 127 | contrast-> setValue ( contr ); |
106 | } | 128 | } |
107 | 129 | ||
108 | // light sensor | 130 | // light sensor |
109 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 131 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
110 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); | 132 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); |
111 | 133 | ||
112 | config. setGroup ( "AC" ); | 134 | config. setGroup ( "AC" ); |
113 | 135 | ||
114 | // ac spinboxes | 136 | // ac spinboxes |
115 | interval_dim_ac-> setValue ( config. readNumEntry ( "Dim", 60 )); | 137 | interval_dim_ac-> setValue ( config. readNumEntry ( "Dim", 60 )); |
116 | interval_lightoff_ac-> setValue ( config. readNumEntry ( "LightOff", 120 )); | 138 | interval_lightoff_ac-> setValue ( config. readNumEntry ( "LightOff", 120 )); |
117 | interval_suspend_ac-> setValue ( config. readNumEntry ( "Suspend", 0 )); | 139 | interval_suspend_ac-> setValue ( config. readNumEntry ( "Suspend", 0 )); |
118 | 140 | ||
119 | // ac check and slider | 141 | // ac check and slider |
120 | LcdOffOnly_ac-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 142 | LcdOffOnly_ac-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
121 | 143 | ||
122 | // CPU frequency | 144 | // CPU frequency |
123 | frequency_ac->setCurrentItem( config.readNumEntry("Freq", 0) ); | 145 | frequency_ac->setCurrentItem( config.readNumEntry("Freq", 0) ); |
124 | 146 | ||
147 | // hinge action | ||
148 | closeHingeAction_ac->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); | ||
149 | |||
125 | bright = config. readNumEntry ( "Brightness", 255 ); | 150 | bright = config. readNumEntry ( "Brightness", 255 ); |
126 | brightness_ac-> setTickInterval ( QMAX( 16, 256 / m_bres )); | 151 | brightness_ac-> setTickInterval ( QMAX( 16, 256 / m_bres )); |
127 | brightness_ac-> setLineStep ( QMAX( 1, 256 / m_bres )); | 152 | brightness_ac-> setLineStep ( QMAX( 1, 256 / m_bres )); |
128 | brightness_ac-> setPageStep ( QMAX( 1, 256 / m_bres )); | 153 | brightness_ac-> setPageStep ( QMAX( 1, 256 / m_bres )); |
129 | brightness_ac-> setValue ( bright ); | 154 | brightness_ac-> setValue ( bright ); |
130 | 155 | ||
131 | if (m_cres) { | 156 | if (m_cres) { |
132 | contr = config. readNumEntry ( "Contrast", 127); | 157 | contr = config. readNumEntry ( "Contrast", 127); |
133 | contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres )); | 158 | contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres )); |
134 | contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres )); | 159 | contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres )); |
135 | contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres )); | 160 | contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres )); |
136 | contrast_ac-> setValue ( contr ); | 161 | contrast_ac-> setValue ( contr ); |
137 | } | 162 | } |
138 | 163 | ||
139 | // light sensor | 164 | // light sensor |
140 | auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 165 | auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
141 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); | 166 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); |
142 | 167 | ||
143 | // advanced settings | 168 | // warnings |
144 | config. setGroup ( "Warnings" ); | 169 | config. setGroup ( "Warnings" ); |
145 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); | 170 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); |
146 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); | 171 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); |
147 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); | 172 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); |
148 | 173 | ||
149 | m_resettimer = new QTimer ( this ); | 174 | m_resettimer = new QTimer ( this ); |
150 | connect ( m_resettimer, SIGNAL( timeout ( )), this, SLOT( resetBacklight ( ))); | 175 | connect ( m_resettimer, SIGNAL( timeout ( )), this, SLOT( resetBacklight ( ))); |
151 | 176 | ||
152 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { | 177 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { |
153 | tabs-> setCurrentPage ( 0 ); | 178 | tabs-> setCurrentPage ( 0 ); |
154 | } | 179 | } |
155 | else { | 180 | else { |
156 | tabs-> setCurrentPage ( 1 ); | 181 | tabs-> setCurrentPage ( 1 ); |
157 | } | 182 | } |
158 | 183 | ||
159 | connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); | 184 | connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); |
160 | connect ( brightness_ac, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); | 185 | connect ( brightness_ac, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); |
161 | if (m_cres) { | 186 | if (m_cres) { |
162 | connect ( contrast, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); | 187 | connect ( contrast, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); |
163 | connect ( contrast_ac, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); | 188 | connect ( contrast_ac, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); |
164 | } | 189 | } |
165 | connect( frequency, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); | 190 | connect( frequency, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); |
191 | connect( frequency_ac, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); | ||
192 | connect( closeHingeAction, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); | ||
193 | connect( closeHingeAction_ac, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); | ||
166 | } | 194 | } |
167 | 195 | ||
168 | LightSettings::~LightSettings ( ) | 196 | LightSettings::~LightSettings ( ) |
169 | { | 197 | { |
170 | } | 198 | } |
171 | 199 | ||
172 | void LightSettings::calibrateSensor ( ) | 200 | void LightSettings::calibrateSensor ( ) |
173 | { | 201 | { |
174 | Sensor *s = new Sensor ( m_sensordata, this ); | 202 | Sensor *s = new Sensor ( m_sensordata, this ); |
175 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); | 203 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); |
176 | s-> showMaximized ( ); | 204 | s-> showMaximized ( ); |
177 | s-> exec ( ); | 205 | s-> exec ( ); |
178 | delete s; | 206 | delete s; |
179 | } | 207 | } |
180 | 208 | ||
181 | void LightSettings::calibrateSensorAC ( ) | 209 | void LightSettings::calibrateSensorAC ( ) |
182 | { | 210 | { |
183 | Sensor *s = new Sensor ( m_sensordata_ac, this ); | 211 | Sensor *s = new Sensor ( m_sensordata_ac, this ); |
184 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); | 212 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); |
185 | s-> showMaximized ( ); | 213 | s-> showMaximized ( ); |
186 | s-> exec ( ); | 214 | s-> exec ( ); |
187 | delete s; | 215 | delete s; |
188 | } | 216 | } |
189 | 217 | ||
190 | void LightSettings::setBacklight ( int bright ) | 218 | void LightSettings::setBacklight ( int bright ) |
191 | { | 219 | { |
192 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); | 220 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); |
193 | e << bright; | 221 | e << bright; |
194 | 222 | ||
195 | if ( bright != -1 ) { | 223 | if ( bright != -1 ) { |
196 | m_resettimer-> stop ( ); | 224 | m_resettimer-> stop ( ); |
197 | m_resettimer-> start ( 4000, true ); | 225 | m_resettimer-> start ( 4000, true ); |
198 | } | 226 | } |
199 | } | 227 | } |
200 | 228 | ||
201 | void LightSettings::setContrast ( int contr ) | 229 | void LightSettings::setContrast ( int contr ) |
202 | { | 230 | { |
203 | if (contr == -1) contr = m_oldcontrast; | 231 | if (contr == -1) contr = m_oldcontrast; |
204 | |||
205 | ODevice::inst ( )-> setDisplayContrast(contr); | 232 | ODevice::inst ( )-> setDisplayContrast(contr); |
206 | } | 233 | } |
207 | 234 | ||
208 | void LightSettings::setFrequency ( int index ) | 235 | void LightSettings::setFrequency ( int index ) |
209 | { | 236 | { |
210 | qWarning("LightSettings::setFrequency(%d)", index); | 237 | qWarning("LightSettings::setFrequency(%d)", index); |
211 | ODevice::inst ( )-> setCurrentCpuFrequency(index); | 238 | ODevice::inst ( )-> setCurrentCpuFrequency(index); |
212 | } | 239 | } |
213 | 240 | ||
214 | void LightSettings::resetBacklight ( ) | 241 | void LightSettings::resetBacklight ( ) |
215 | { | 242 | { |
216 | setBacklight ( -1 ); | 243 | setBacklight ( -1 ); |
217 | setContrast ( -1 ); | 244 | setContrast ( -1 ); |
218 | } | 245 | } |
219 | 246 | ||
247 | void LightSettings::setCloseHingeAction ( int index ) | ||
248 | { | ||
249 | qWarning("LightSettings::setCloseHingeStatus(%d)", index); | ||
250 | } | ||
251 | |||
220 | void LightSettings::accept ( ) | 252 | void LightSettings::accept ( ) |
221 | { | 253 | { |
222 | Config config ( "apm" ); | 254 | Config config ( "apm" ); |
223 | 255 | ||
224 | // bat | 256 | // bat |
225 | config. setGroup ( "Battery" ); | 257 | config. setGroup ( "Battery" ); |
226 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); | 258 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); |
227 | config. writeEntry ( "Dim", interval_dim-> value ( )); | 259 | config. writeEntry ( "Dim", interval_dim-> value ( )); |
228 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); | 260 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); |
229 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); | 261 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); |
230 | config. writeEntry ( "Brightness", brightness-> value () ); | 262 | config. writeEntry ( "Brightness", brightness-> value () ); |
231 | if (m_cres) | 263 | if (m_cres) |
232 | config. writeEntry ( "Contrast", contrast-> value () ); | 264 | config. writeEntry ( "Contrast", contrast-> value () ); |
233 | config. writeEntry ( "Freq", frequency->currentItem() ); | 265 | config. writeEntry ( "Freq", frequency->currentItem() ); |
266 | config. writeEntry ( "CloseHingeAction", closeHingeAction->currentItem() ); | ||
234 | 267 | ||
235 | // ac | 268 | // ac |
236 | config. setGroup ( "AC" ); | 269 | config. setGroup ( "AC" ); |
237 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_ac-> isChecked ( )); | 270 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_ac-> isChecked ( )); |
238 | config. writeEntry ( "Dim", interval_dim_ac-> value ( )); | 271 | config. writeEntry ( "Dim", interval_dim_ac-> value ( )); |
239 | config. writeEntry ( "LightOff", interval_lightoff_ac-> value ( )); | 272 | config. writeEntry ( "LightOff", interval_lightoff_ac-> value ( )); |
240 | config. writeEntry ( "Suspend", interval_suspend_ac-> value ( )); | 273 | config. writeEntry ( "Suspend", interval_suspend_ac-> value ( )); |
241 | config. writeEntry ( "Brightness", brightness_ac-> value () ); | 274 | config. writeEntry ( "Brightness", brightness_ac-> value () ); |
242 | if (m_cres) | 275 | if (m_cres) |
243 | config. writeEntry ( "Contrast", contrast_ac-> value () ); | 276 | config. writeEntry ( "Contrast", contrast_ac-> value () ); |
244 | config. writeEntry ( "Freq", frequency_ac->currentItem() ); | 277 | config. writeEntry ( "Freq", frequency_ac->currentItem() ); |
278 | config. writeEntry ( "CloseHingeAction", closeHingeAction_ac->currentItem() ); | ||
245 | 279 | ||
246 | // only make light sensor stuff appear if the unit has a sensor | 280 | // only make light sensor stuff appear if the unit has a sensor |
247 | if ( ODevice::inst ( )-> hasLightSensor ( )) { | 281 | if ( ODevice::inst ( )-> hasLightSensor ( )) { |
248 | config. setGroup ( "Battery" ); | 282 | config. setGroup ( "Battery" ); |
249 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); | 283 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); |
250 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); | 284 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); |
251 | config. setGroup ( "AC" ); | 285 | config. setGroup ( "AC" ); |
252 | config. writeEntry ( "LightSensor", auto_brightness_ac->isChecked() ); | 286 | config. writeEntry ( "LightSensor", auto_brightness_ac->isChecked() ); |
253 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); | 287 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); |
254 | } | 288 | } |
255 | 289 | ||
256 | // advanced | 290 | // advanced |
257 | config. setGroup ( "Warnings" ); | 291 | config. setGroup ( "Warnings" ); |
258 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); | 292 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); |
259 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); | 293 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); |
260 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); | 294 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); |
261 | config. write ( ); | 295 | config. write ( ); |
262 | 296 | ||
263 | // notify the launcher | 297 | // notify the launcher |
264 | { | 298 | { |
265 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); | 299 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); |
266 | } | 300 | } |
267 | { | 301 | { |
268 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); | 302 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); |
269 | e << -1; | 303 | e << -1; |
270 | } | 304 | } |
271 | LightSettingsBase::accept ( ); | 305 | LightSettingsBase::accept ( ); |
272 | } | 306 | } |
273 | 307 | ||
274 | void LightSettings::done ( int r ) | 308 | void LightSettings::done ( int r ) |
275 | { | 309 | { |
276 | m_resettimer-> stop ( ); | 310 | m_resettimer-> stop ( ); |
277 | resetBacklight ( ); | 311 | resetBacklight ( ); |
278 | 312 | ||
279 | LightSettingsBase::done ( r ); | 313 | LightSettingsBase::done ( r ); |
280 | close ( ); | 314 | close ( ); |
281 | } | 315 | } |
diff --git a/core/settings/light-and-power/light.h b/core/settings/light-and-power/light.h index 83d5520..2167817 100644 --- a/core/settings/light-and-power/light.h +++ b/core/settings/light-and-power/light.h | |||
@@ -25,47 +25,48 @@ | |||
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | #ifndef __LIGHT_H__ | 28 | #ifndef __LIGHT_H__ |
29 | #define __LIGHT_H__ | 29 | #define __LIGHT_H__ |
30 | 30 | ||
31 | 31 | ||
32 | #include <qstringlist.h> | 32 | #include <qstringlist.h> |
33 | #include <qlistbox.h> | 33 | #include <qlistbox.h> |
34 | #include "lightsettingsbase.h" | 34 | #include "lightsettingsbase.h" |
35 | 35 | ||
36 | class QTimer; | 36 | class QTimer; |
37 | 37 | ||
38 | class LightSettings : public LightSettingsBase | 38 | class LightSettings : public LightSettingsBase |
39 | { | 39 | { |
40 | Q_OBJECT | 40 | Q_OBJECT |
41 | 41 | ||
42 | public: | 42 | public: |
43 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 43 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
44 | ~LightSettings(); | 44 | ~LightSettings(); |
45 | static QString appName() { return QString::fromLatin1("light-and-power"); } | 45 | static QString appName() { return QString::fromLatin1("light-and-power"); } |
46 | 46 | ||
47 | protected: | 47 | protected: |
48 | virtual void accept(); | 48 | virtual void accept(); |
49 | virtual void done ( int r ); | 49 | virtual void done ( int r ); |
50 | 50 | ||
51 | protected slots: | 51 | protected slots: |
52 | virtual void calibrateSensor ( ); | 52 | virtual void calibrateSensor ( ); |
53 | virtual void calibrateSensorAC ( ); | 53 | virtual void calibrateSensorAC ( ); |
54 | void setBacklight ( int ); | 54 | void setBacklight ( int ); |
55 | void setContrast ( int ); | 55 | void setContrast ( int ); |
56 | void setFrequency ( int ); | 56 | void setFrequency ( int ); |
57 | void setCloseHingeAction ( int ); | ||
57 | void resetBacklight ( ); | 58 | void resetBacklight ( ); |
58 | 59 | ||
59 | private: | 60 | private: |
60 | int m_bres; | 61 | int m_bres; |
61 | int m_cres; | 62 | int m_cres; |
62 | int m_oldcontrast; | 63 | int m_oldcontrast; |
63 | int m_oldfreq; | 64 | int m_oldfreq; |
64 | QTimer *m_resettimer; | 65 | QTimer *m_resettimer; |
65 | QStringList m_sensordata; | 66 | QStringList m_sensordata; |
66 | QStringList m_sensordata_ac; | 67 | QStringList m_sensordata_ac; |
67 | }; | 68 | }; |
68 | 69 | ||
69 | 70 | ||
70 | #endif | 71 | #endif |
71 | 72 | ||
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index e4d5f0e..2af0331 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -1,46 +1,46 @@ | |||
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>343</width> | 14 | <width>331</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> |
@@ -76,254 +76,290 @@ | |||
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>Group1</cstring> | 83 | <cstring>Group1</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 | <grid> | 99 | <grid> |
100 | <property stdset="1"> | 100 | <property stdset="1"> |
101 | <name>margin</name> | 101 | <name>margin</name> |
102 | <number>5</number> | 102 | <number>5</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 row="1" column="1" > | 108 | <widget row="0" column="0" rowspan="1" colspan="2" > |
109 | <class>QSpinBox</class> | 109 | <class>QLabel</class> |
110 | <property stdset="1"> | 110 | <property stdset="1"> |
111 | <name>name</name> | 111 | <name>name</name> |
112 | <cstring>interval_lightoff</cstring> | 112 | <cstring>TL1</cstring> |
113 | </property> | 113 | </property> |
114 | <property stdset="1"> | 114 | <property stdset="1"> |
115 | <name>suffix</name> | 115 | <name>sizePolicy</name> |
116 | <string> sec</string> | 116 | <sizepolicy> |
117 | <hsizetype>3</hsizetype> | ||
118 | <vsizetype>1</vsizetype> | ||
119 | </sizepolicy> | ||
117 | </property> | 120 | </property> |
118 | <property stdset="1"> | 121 | <property stdset="1"> |
119 | <name>specialValueText</name> | 122 | <name>text</name> |
120 | <string>never</string> | 123 | <string>Dim light after</string> |
121 | </property> | 124 | </property> |
125 | </widget> | ||
126 | <widget row="2" column="0" rowspan="1" colspan="2" > | ||
127 | <class>QLabel</class> | ||
122 | <property stdset="1"> | 128 | <property stdset="1"> |
123 | <name>buttonSymbols</name> | 129 | <name>name</name> |
124 | <enum>PlusMinus</enum> | 130 | <cstring>TL3</cstring> |
125 | </property> | 131 | </property> |
126 | <property stdset="1"> | 132 | <property stdset="1"> |
127 | <name>maxValue</name> | 133 | <name>sizePolicy</name> |
128 | <number>3600</number> | 134 | <sizepolicy> |
135 | <hsizetype>3</hsizetype> | ||
136 | <vsizetype>1</vsizetype> | ||
137 | </sizepolicy> | ||
129 | </property> | 138 | </property> |
130 | <property stdset="1"> | 139 | <property stdset="1"> |
131 | <name>minValue</name> | 140 | <name>text</name> |
132 | <number>0</number> | 141 | <string>Suspend after</string> |
133 | </property> | 142 | </property> |
143 | </widget> | ||
144 | <widget row="4" column="0" rowspan="1" colspan="3" > | ||
145 | <class>QCheckBox</class> | ||
134 | <property stdset="1"> | 146 | <property stdset="1"> |
135 | <name>lineStep</name> | 147 | <name>name</name> |
136 | <number>10</number> | 148 | <cstring>LcdOffOnly</cstring> |
149 | </property> | ||
150 | <property stdset="1"> | ||
151 | <name>sizePolicy</name> | ||
152 | <sizepolicy> | ||
153 | <hsizetype>7</hsizetype> | ||
154 | <vsizetype>0</vsizetype> | ||
155 | </sizepolicy> | ||
156 | </property> | ||
157 | <property stdset="1"> | ||
158 | <name>text</name> | ||
159 | <string>Deactivate LCD only (does not suspend)</string> | ||
137 | </property> | 160 | </property> |
138 | </widget> | 161 | </widget> |
139 | <widget row="0" column="0" > | 162 | <widget row="3" column="0" rowspan="1" colspan="2" > |
140 | <class>QLabel</class> | 163 | <class>QLabel</class> |
141 | <property stdset="1"> | 164 | <property stdset="1"> |
142 | <name>name</name> | 165 | <name>name</name> |
143 | <cstring>TL1</cstring> | 166 | <cstring>frequencyLabel</cstring> |
144 | </property> | 167 | </property> |
145 | <property stdset="1"> | 168 | <property stdset="1"> |
146 | <name>sizePolicy</name> | 169 | <name>sizePolicy</name> |
147 | <sizepolicy> | 170 | <sizepolicy> |
148 | <hsizetype>3</hsizetype> | 171 | <hsizetype>3</hsizetype> |
149 | <vsizetype>1</vsizetype> | 172 | <vsizetype>1</vsizetype> |
150 | </sizepolicy> | 173 | </sizepolicy> |
151 | </property> | 174 | </property> |
152 | <property stdset="1"> | 175 | <property stdset="1"> |
153 | <name>text</name> | 176 | <name>text</name> |
154 | <string>Dim light after</string> | 177 | <string>CPU Frequency</string> |
155 | </property> | 178 | </property> |
156 | </widget> | 179 | </widget> |
157 | <widget row="0" column="1" > | 180 | <widget row="5" column="0" > |
181 | <class>QLabel</class> | ||
182 | <property stdset="1"> | ||
183 | <name>name</name> | ||
184 | <cstring>closeHingeLabel</cstring> | ||
185 | </property> | ||
186 | <property stdset="1"> | ||
187 | <name>text</name> | ||
188 | <string>On closing the hinge</string> | ||
189 | </property> | ||
190 | </widget> | ||
191 | <widget row="0" column="2" > | ||
158 | <class>QSpinBox</class> | 192 | <class>QSpinBox</class> |
159 | <property stdset="1"> | 193 | <property stdset="1"> |
160 | <name>name</name> | 194 | <name>name</name> |
161 | <cstring>interval_dim</cstring> | 195 | <cstring>interval_dim</cstring> |
162 | </property> | 196 | </property> |
163 | <property stdset="1"> | 197 | <property stdset="1"> |
164 | <name>suffix</name> | 198 | <name>suffix</name> |
165 | <string> sec</string> | 199 | <string> sec</string> |
166 | </property> | 200 | </property> |
167 | <property stdset="1"> | 201 | <property stdset="1"> |
168 | <name>specialValueText</name> | 202 | <name>specialValueText</name> |
169 | <string>never</string> | 203 | <string>never</string> |
170 | </property> | 204 | </property> |
171 | <property stdset="1"> | 205 | <property stdset="1"> |
172 | <name>buttonSymbols</name> | 206 | <name>buttonSymbols</name> |
173 | <enum>PlusMinus</enum> | 207 | <enum>PlusMinus</enum> |
174 | </property> | 208 | </property> |
175 | <property stdset="1"> | 209 | <property stdset="1"> |
176 | <name>maxValue</name> | 210 | <name>maxValue</name> |
177 | <number>3600</number> | 211 | <number>3600</number> |
178 | </property> | 212 | </property> |
179 | <property stdset="1"> | 213 | <property stdset="1"> |
180 | <name>minValue</name> | 214 | <name>minValue</name> |
181 | <number>0</number> | 215 | <number>0</number> |
182 | </property> | 216 | </property> |
183 | <property stdset="1"> | 217 | <property stdset="1"> |
184 | <name>lineStep</name> | 218 | <name>lineStep</name> |
185 | <number>10</number> | 219 | <number>10</number> |
186 | </property> | 220 | </property> |
187 | </widget> | 221 | </widget> |
188 | <widget row="4" column="0" rowspan="1" colspan="2" > | 222 | <widget row="1" column="2" > |
189 | <class>QCheckBox</class> | 223 | <class>QSpinBox</class> |
190 | <property stdset="1"> | ||
191 | <name>name</name> | ||
192 | <cstring>LcdOffOnly</cstring> | ||
193 | </property> | ||
194 | <property stdset="1"> | ||
195 | <name>sizePolicy</name> | ||
196 | <sizepolicy> | ||
197 | <hsizetype>7</hsizetype> | ||
198 | <vsizetype>0</vsizetype> | ||
199 | </sizepolicy> | ||
200 | </property> | ||
201 | <property stdset="1"> | ||
202 | <name>text</name> | ||
203 | <string>Deactivate LCD only (does not suspend)</string> | ||
204 | </property> | ||
205 | </widget> | ||
206 | <widget row="2" column="0" > | ||
207 | <class>QLabel</class> | ||
208 | <property stdset="1"> | 224 | <property stdset="1"> |
209 | <name>name</name> | 225 | <name>name</name> |
210 | <cstring>TL3</cstring> | 226 | <cstring>interval_lightoff</cstring> |
211 | </property> | ||
212 | <property stdset="1"> | ||
213 | <name>sizePolicy</name> | ||
214 | <sizepolicy> | ||
215 | <hsizetype>3</hsizetype> | ||
216 | <vsizetype>1</vsizetype> | ||
217 | </sizepolicy> | ||
218 | </property> | 227 | </property> |
219 | <property stdset="1"> | 228 | <property stdset="1"> |
220 | <name>text</name> | 229 | <name>suffix</name> |
221 | <string>Suspend after</string> | 230 | <string> sec</string> |
222 | </property> | ||
223 | </widget> | ||
224 | <widget row="1" column="0" > | ||
225 | <class>QLabel</class> | ||
226 | <property stdset="1"> | ||
227 | <name>name</name> | ||
228 | <cstring>TL2</cstring> | ||
229 | </property> | 231 | </property> |
230 | <property stdset="1"> | 232 | <property stdset="1"> |
231 | <name>sizePolicy</name> | 233 | <name>specialValueText</name> |
232 | <sizepolicy> | 234 | <string>never</string> |
233 | <hsizetype>3</hsizetype> | ||
234 | <vsizetype>1</vsizetype> | ||
235 | </sizepolicy> | ||
236 | </property> | 235 | </property> |
237 | <property stdset="1"> | 236 | <property stdset="1"> |
238 | <name>text</name> | 237 | <name>buttonSymbols</name> |
239 | <string>Light off after</string> | 238 | <enum>PlusMinus</enum> |
240 | </property> | 239 | </property> |
241 | </widget> | ||
242 | <widget row="3" column="0" > | ||
243 | <class>QLabel</class> | ||
244 | <property stdset="1"> | 240 | <property stdset="1"> |
245 | <name>name</name> | 241 | <name>maxValue</name> |
246 | <cstring>TL3_2</cstring> | 242 | <number>3600</number> |
247 | </property> | 243 | </property> |
248 | <property stdset="1"> | 244 | <property stdset="1"> |
249 | <name>sizePolicy</name> | 245 | <name>minValue</name> |
250 | <sizepolicy> | 246 | <number>0</number> |
251 | <hsizetype>3</hsizetype> | ||
252 | <vsizetype>1</vsizetype> | ||
253 | </sizepolicy> | ||
254 | </property> | 247 | </property> |
255 | <property stdset="1"> | 248 | <property stdset="1"> |
256 | <name>text</name> | 249 | <name>lineStep</name> |
257 | <string>CPU Frequency</string> | 250 | <number>10</number> |
258 | </property> | 251 | </property> |
259 | </widget> | 252 | </widget> |
260 | <widget row="2" column="1" > | 253 | <widget row="2" column="2" > |
261 | <class>QSpinBox</class> | 254 | <class>QSpinBox</class> |
262 | <property stdset="1"> | 255 | <property stdset="1"> |
263 | <name>name</name> | 256 | <name>name</name> |
264 | <cstring>interval_suspend</cstring> | 257 | <cstring>interval_suspend</cstring> |
265 | </property> | 258 | </property> |
266 | <property stdset="1"> | 259 | <property stdset="1"> |
267 | <name>suffix</name> | 260 | <name>suffix</name> |
268 | <string> sec</string> | 261 | <string> sec</string> |
269 | </property> | 262 | </property> |
270 | <property stdset="1"> | 263 | <property stdset="1"> |
271 | <name>specialValueText</name> | 264 | <name>specialValueText</name> |
272 | <string>never</string> | 265 | <string>never</string> |
273 | </property> | 266 | </property> |
274 | <property stdset="1"> | 267 | <property stdset="1"> |
275 | <name>buttonSymbols</name> | 268 | <name>buttonSymbols</name> |
276 | <enum>PlusMinus</enum> | 269 | <enum>PlusMinus</enum> |
277 | </property> | 270 | </property> |
278 | <property stdset="1"> | 271 | <property stdset="1"> |
279 | <name>maxValue</name> | 272 | <name>maxValue</name> |
280 | <number>3600</number> | 273 | <number>3600</number> |
281 | </property> | 274 | </property> |
282 | <property stdset="1"> | 275 | <property stdset="1"> |
283 | <name>minValue</name> | 276 | <name>minValue</name> |
284 | <number>0</number> | 277 | <number>0</number> |
285 | </property> | 278 | </property> |
286 | <property stdset="1"> | 279 | <property stdset="1"> |
287 | <name>lineStep</name> | 280 | <name>lineStep</name> |
288 | <number>10</number> | 281 | <number>10</number> |
289 | </property> | 282 | </property> |
290 | </widget> | 283 | </widget> |
291 | <widget row="3" column="1" > | 284 | <widget row="3" column="2" > |
292 | <class>QComboBox</class> | 285 | <class>QComboBox</class> |
293 | <property stdset="1"> | 286 | <property stdset="1"> |
294 | <name>name</name> | 287 | <name>name</name> |
295 | <cstring>frequency</cstring> | 288 | <cstring>frequency</cstring> |
296 | </property> | 289 | </property> |
297 | </widget> | 290 | </widget> |
291 | <widget row="5" column="1" rowspan="1" colspan="2" > | ||
292 | <class>QComboBox</class> | ||
293 | <item> | ||
294 | <property> | ||
295 | <name>text</name> | ||
296 | <string>ignore</string> | ||
297 | </property> | ||
298 | </item> | ||
299 | <item> | ||
300 | <property> | ||
301 | <name>text</name> | ||
302 | <string>display off</string> | ||
303 | </property> | ||
304 | </item> | ||
305 | <item> | ||
306 | <property> | ||
307 | <name>text</name> | ||
308 | <string>suspend</string> | ||
309 | </property> | ||
310 | </item> | ||
311 | <property stdset="1"> | ||
312 | <name>name</name> | ||
313 | <cstring>closeHingeAction</cstring> | ||
314 | </property> | ||
315 | </widget> | ||
316 | <widget row="1" column="0" > | ||
317 | <class>QLabel</class> | ||
318 | <property stdset="1"> | ||
319 | <name>name</name> | ||
320 | <cstring>TL2</cstring> | ||
321 | </property> | ||
322 | <property stdset="1"> | ||
323 | <name>sizePolicy</name> | ||
324 | <sizepolicy> | ||
325 | <hsizetype>3</hsizetype> | ||
326 | <vsizetype>1</vsizetype> | ||
327 | </sizepolicy> | ||
328 | </property> | ||
329 | <property stdset="1"> | ||
330 | <name>text</name> | ||
331 | <string>Light off after</string> | ||
332 | </property> | ||
333 | </widget> | ||
298 | </grid> | 334 | </grid> |
299 | </widget> | 335 | </widget> |
300 | <widget> | 336 | <widget> |
301 | <class>QGroupBox</class> | 337 | <class>QGroupBox</class> |
302 | <property stdset="1"> | 338 | <property stdset="1"> |
303 | <name>name</name> | 339 | <name>name</name> |
304 | <cstring>GroupLight</cstring> | 340 | <cstring>GroupLight</cstring> |
305 | </property> | 341 | </property> |
306 | <property stdset="1"> | 342 | <property stdset="1"> |
307 | <name>title</name> | 343 | <name>title</name> |
308 | <string>Backlight</string> | 344 | <string>Backlight</string> |
309 | </property> | 345 | </property> |
310 | <property> | 346 | <property> |
311 | <name>layoutMargin</name> | 347 | <name>layoutMargin</name> |
312 | </property> | 348 | </property> |
313 | <property> | 349 | <property> |
314 | <name>layoutSpacing</name> | 350 | <name>layoutSpacing</name> |
315 | </property> | 351 | </property> |
316 | <vbox> | 352 | <vbox> |
317 | <property stdset="1"> | 353 | <property stdset="1"> |
318 | <name>margin</name> | 354 | <name>margin</name> |
319 | <number>5</number> | 355 | <number>5</number> |
320 | </property> | 356 | </property> |
321 | <property stdset="1"> | 357 | <property stdset="1"> |
322 | <name>spacing</name> | 358 | <name>spacing</name> |
323 | <number>3</number> | 359 | <number>3</number> |
324 | </property> | 360 | </property> |
325 | <widget> | 361 | <widget> |
326 | <class>QSlider</class> | 362 | <class>QSlider</class> |
327 | <property stdset="1"> | 363 | <property stdset="1"> |
328 | <name>name</name> | 364 | <name>name</name> |
329 | <cstring>brightness</cstring> | 365 | <cstring>brightness</cstring> |
@@ -523,287 +559,323 @@ | |||
523 | </property> | 559 | </property> |
524 | <property stdset="1"> | 560 | <property stdset="1"> |
525 | <name>orientation</name> | 561 | <name>orientation</name> |
526 | <enum>Vertical</enum> | 562 | <enum>Vertical</enum> |
527 | </property> | 563 | </property> |
528 | <property stdset="1"> | 564 | <property stdset="1"> |
529 | <name>sizeType</name> | 565 | <name>sizeType</name> |
530 | <enum>Expanding</enum> | 566 | <enum>Expanding</enum> |
531 | </property> | 567 | </property> |
532 | <property> | 568 | <property> |
533 | <name>sizeHint</name> | 569 | <name>sizeHint</name> |
534 | <size> | 570 | <size> |
535 | <width>20</width> | 571 | <width>20</width> |
536 | <height>20</height> | 572 | <height>20</height> |
537 | </size> | 573 | </size> |
538 | </property> | 574 | </property> |
539 | </spacer> | 575 | </spacer> |
540 | </vbox> | 576 | </vbox> |
541 | </widget> | 577 | </widget> |
542 | <widget> | 578 | <widget> |
543 | <class>QWidget</class> | 579 | <class>QWidget</class> |
544 | <property stdset="1"> | 580 | <property stdset="1"> |
545 | <name>name</name> | 581 | <name>name</name> |
546 | <cstring>tab</cstring> | 582 | <cstring>tab</cstring> |
547 | </property> | 583 | </property> |
548 | <attribute> | 584 | <attribute> |
549 | <name>title</name> | 585 | <name>title</name> |
550 | <string>on AC</string> | 586 | <string>on AC</string> |
551 | </attribute> | 587 | </attribute> |
552 | <vbox> | 588 | <vbox> |
553 | <property stdset="1"> | 589 | <property stdset="1"> |
554 | <name>margin</name> | 590 | <name>margin</name> |
555 | <number>-1</number> | 591 | <number>5</number> |
556 | </property> | 592 | </property> |
557 | <property stdset="1"> | 593 | <property stdset="1"> |
558 | <name>spacing</name> | 594 | <name>spacing</name> |
559 | <number>-1</number> | 595 | <number>3</number> |
560 | </property> | 596 | </property> |
561 | <widget> | 597 | <widget> |
562 | <class>QGroupBox</class> | 598 | <class>QGroupBox</class> |
563 | <property stdset="1"> | 599 | <property stdset="1"> |
564 | <name>name</name> | 600 | <name>name</name> |
565 | <cstring>Group3</cstring> | 601 | <cstring>Group3</cstring> |
566 | </property> | 602 | </property> |
567 | <property stdset="1"> | 603 | <property stdset="1"> |
568 | <name>enabled</name> | 604 | <name>enabled</name> |
569 | <bool>true</bool> | 605 | <bool>true</bool> |
570 | </property> | 606 | </property> |
571 | <property stdset="1"> | 607 | <property stdset="1"> |
572 | <name>title</name> | 608 | <name>title</name> |
573 | <string>General Settings</string> | 609 | <string>General Settings</string> |
574 | </property> | 610 | </property> |
575 | <property> | 611 | <property> |
576 | <name>layoutMargin</name> | 612 | <name>layoutMargin</name> |
577 | </property> | 613 | </property> |
578 | <property> | 614 | <property> |
579 | <name>layoutSpacing</name> | 615 | <name>layoutSpacing</name> |
580 | </property> | 616 | </property> |
581 | <grid> | 617 | <grid> |
582 | <property stdset="1"> | 618 | <property stdset="1"> |
583 | <name>margin</name> | 619 | <name>margin</name> |
584 | <number>5</number> | 620 | <number>5</number> |
585 | </property> | 621 | </property> |
586 | <property stdset="1"> | 622 | <property stdset="1"> |
587 | <name>spacing</name> | 623 | <name>spacing</name> |
588 | <number>3</number> | 624 | <number>3</number> |
589 | </property> | 625 | </property> |
590 | <widget row="1" column="1" > | 626 | <widget row="1" column="1" > |
591 | <class>QSpinBox</class> | 627 | <class>QSpinBox</class> |
592 | <property stdset="1"> | 628 | <property stdset="1"> |
593 | <name>name</name> | 629 | <name>name</name> |
594 | <cstring>interval_lightoff_ac</cstring> | 630 | <cstring>interval_lightoff_ac</cstring> |
595 | </property> | 631 | </property> |
596 | <property stdset="1"> | 632 | <property stdset="1"> |
597 | <name>suffix</name> | 633 | <name>suffix</name> |
598 | <string> sec</string> | 634 | <string> sec</string> |
599 | </property> | 635 | </property> |
600 | <property stdset="1"> | 636 | <property stdset="1"> |
601 | <name>specialValueText</name> | 637 | <name>specialValueText</name> |
602 | <string>never</string> | 638 | <string>never</string> |
603 | </property> | 639 | </property> |
604 | <property stdset="1"> | 640 | <property stdset="1"> |
605 | <name>buttonSymbols</name> | 641 | <name>buttonSymbols</name> |
606 | <enum>PlusMinus</enum> | 642 | <enum>PlusMinus</enum> |
607 | </property> | 643 | </property> |
608 | <property stdset="1"> | 644 | <property stdset="1"> |
609 | <name>maxValue</name> | 645 | <name>maxValue</name> |
610 | <number>3600</number> | 646 | <number>3600</number> |
611 | </property> | 647 | </property> |
612 | <property stdset="1"> | 648 | <property stdset="1"> |
613 | <name>minValue</name> | 649 | <name>minValue</name> |
614 | <number>0</number> | 650 | <number>0</number> |
615 | </property> | 651 | </property> |
616 | <property stdset="1"> | 652 | <property stdset="1"> |
617 | <name>lineStep</name> | 653 | <name>lineStep</name> |
618 | <number>10</number> | 654 | <number>10</number> |
619 | </property> | 655 | </property> |
620 | </widget> | 656 | </widget> |
621 | <widget row="0" column="0" > | ||
622 | <class>QLabel</class> | ||
623 | <property stdset="1"> | ||
624 | <name>name</name> | ||
625 | <cstring>TextLabel1_3_2</cstring> | ||
626 | </property> | ||
627 | <property stdset="1"> | ||
628 | <name>sizePolicy</name> | ||
629 | <sizepolicy> | ||
630 | <hsizetype>3</hsizetype> | ||
631 | <vsizetype>1</vsizetype> | ||
632 | </sizepolicy> | ||
633 | </property> | ||
634 | <property stdset="1"> | ||
635 | <name>text</name> | ||
636 | <string>Dim light after</string> | ||
637 | </property> | ||
638 | </widget> | ||
639 | <widget row="2" column="1" > | 657 | <widget row="2" column="1" > |
640 | <class>QSpinBox</class> | 658 | <class>QSpinBox</class> |
641 | <property stdset="1"> | 659 | <property stdset="1"> |
642 | <name>name</name> | 660 | <name>name</name> |
643 | <cstring>interval_suspend_ac</cstring> | 661 | <cstring>interval_suspend_ac</cstring> |
644 | </property> | 662 | </property> |
645 | <property stdset="1"> | 663 | <property stdset="1"> |
646 | <name>suffix</name> | 664 | <name>suffix</name> |
647 | <string> sec</string> | 665 | <string> sec</string> |
648 | </property> | 666 | </property> |
649 | <property stdset="1"> | 667 | <property stdset="1"> |
650 | <name>specialValueText</name> | 668 | <name>specialValueText</name> |
651 | <string>never</string> | 669 | <string>never</string> |
652 | </property> | 670 | </property> |
653 | <property stdset="1"> | 671 | <property stdset="1"> |
654 | <name>buttonSymbols</name> | 672 | <name>buttonSymbols</name> |
655 | <enum>PlusMinus</enum> | 673 | <enum>PlusMinus</enum> |
656 | </property> | 674 | </property> |
657 | <property stdset="1"> | 675 | <property stdset="1"> |
658 | <name>maxValue</name> | 676 | <name>maxValue</name> |
659 | <number>3600</number> | 677 | <number>3600</number> |
660 | </property> | 678 | </property> |
661 | <property stdset="1"> | 679 | <property stdset="1"> |
662 | <name>minValue</name> | 680 | <name>minValue</name> |
663 | <number>0</number> | 681 | <number>0</number> |
664 | </property> | 682 | </property> |
665 | <property stdset="1"> | 683 | <property stdset="1"> |
666 | <name>lineStep</name> | 684 | <name>lineStep</name> |
667 | <number>10</number> | 685 | <number>10</number> |
668 | </property> | 686 | </property> |
669 | </widget> | 687 | </widget> |
670 | <widget row="0" column="1" > | 688 | <widget row="0" column="1" > |
671 | <class>QSpinBox</class> | 689 | <class>QSpinBox</class> |
672 | <property stdset="1"> | 690 | <property stdset="1"> |
673 | <name>name</name> | 691 | <name>name</name> |
674 | <cstring>interval_dim_ac</cstring> | 692 | <cstring>interval_dim_ac</cstring> |
675 | </property> | 693 | </property> |
676 | <property stdset="1"> | 694 | <property stdset="1"> |
677 | <name>suffix</name> | 695 | <name>suffix</name> |
678 | <string> sec</string> | 696 | <string> sec</string> |
679 | </property> | 697 | </property> |
680 | <property stdset="1"> | 698 | <property stdset="1"> |
681 | <name>specialValueText</name> | 699 | <name>specialValueText</name> |
682 | <string>never</string> | 700 | <string>never</string> |
683 | </property> | 701 | </property> |
684 | <property stdset="1"> | 702 | <property stdset="1"> |
685 | <name>buttonSymbols</name> | 703 | <name>buttonSymbols</name> |
686 | <enum>PlusMinus</enum> | 704 | <enum>PlusMinus</enum> |
687 | </property> | 705 | </property> |
688 | <property stdset="1"> | 706 | <property stdset="1"> |
689 | <name>maxValue</name> | 707 | <name>maxValue</name> |
690 | <number>3600</number> | 708 | <number>3600</number> |
691 | </property> | 709 | </property> |
692 | <property stdset="1"> | 710 | <property stdset="1"> |
693 | <name>minValue</name> | 711 | <name>minValue</name> |
694 | <number>0</number> | 712 | <number>0</number> |
695 | </property> | 713 | </property> |
696 | <property stdset="1"> | 714 | <property stdset="1"> |
697 | <name>lineStep</name> | 715 | <name>lineStep</name> |
698 | <number>10</number> | 716 | <number>10</number> |
699 | </property> | 717 | </property> |
700 | </widget> | 718 | </widget> |
719 | <widget row="3" column="1" > | ||
720 | <class>QComboBox</class> | ||
721 | <property stdset="1"> | ||
722 | <name>name</name> | ||
723 | <cstring>frequency_ac</cstring> | ||
724 | </property> | ||
725 | </widget> | ||
726 | <widget row="3" column="0" > | ||
727 | <class>QLabel</class> | ||
728 | <property stdset="1"> | ||
729 | <name>name</name> | ||
730 | <cstring>frequencyLabel_ac</cstring> | ||
731 | </property> | ||
732 | <property stdset="1"> | ||
733 | <name>sizePolicy</name> | ||
734 | <sizepolicy> | ||
735 | <hsizetype>3</hsizetype> | ||
736 | <vsizetype>1</vsizetype> | ||
737 | </sizepolicy> | ||
738 | </property> | ||
739 | <property stdset="1"> | ||
740 | <name>text</name> | ||
741 | <string>CPU Frequency</string> | ||
742 | </property> | ||
743 | </widget> | ||
701 | <widget row="1" column="0" > | 744 | <widget row="1" column="0" > |
702 | <class>QLabel</class> | 745 | <class>QLabel</class> |
703 | <property stdset="1"> | 746 | <property stdset="1"> |
704 | <name>name</name> | 747 | <name>name</name> |
705 | <cstring>TextLabel2_2_2</cstring> | 748 | <cstring>TextLabel2_2_2</cstring> |
706 | </property> | 749 | </property> |
707 | <property stdset="1"> | 750 | <property stdset="1"> |
708 | <name>sizePolicy</name> | 751 | <name>sizePolicy</name> |
709 | <sizepolicy> | 752 | <sizepolicy> |
710 | <hsizetype>3</hsizetype> | 753 | <hsizetype>3</hsizetype> |
711 | <vsizetype>1</vsizetype> | 754 | <vsizetype>1</vsizetype> |
712 | </sizepolicy> | 755 | </sizepolicy> |
713 | </property> | 756 | </property> |
714 | <property stdset="1"> | 757 | <property stdset="1"> |
715 | <name>text</name> | 758 | <name>text</name> |
716 | <string>Light off after</string> | 759 | <string>Light off after</string> |
717 | </property> | 760 | </property> |
718 | </widget> | 761 | </widget> |
719 | <widget row="2" column="0" > | 762 | <widget row="0" column="0" > |
720 | <class>QLabel</class> | 763 | <class>QLabel</class> |
721 | <property stdset="1"> | 764 | <property stdset="1"> |
722 | <name>name</name> | 765 | <name>name</name> |
723 | <cstring>TextLabel1_2_2_3</cstring> | 766 | <cstring>TextLabel1_3_2</cstring> |
724 | </property> | 767 | </property> |
725 | <property stdset="1"> | 768 | <property stdset="1"> |
726 | <name>sizePolicy</name> | 769 | <name>sizePolicy</name> |
727 | <sizepolicy> | 770 | <sizepolicy> |
728 | <hsizetype>3</hsizetype> | 771 | <hsizetype>3</hsizetype> |
729 | <vsizetype>1</vsizetype> | 772 | <vsizetype>1</vsizetype> |
730 | </sizepolicy> | 773 | </sizepolicy> |
731 | </property> | 774 | </property> |
732 | <property stdset="1"> | 775 | <property stdset="1"> |
733 | <name>text</name> | 776 | <name>text</name> |
734 | <string>Suspend after</string> | 777 | <string>Dim light after</string> |
735 | </property> | 778 | </property> |
736 | </widget> | 779 | </widget> |
737 | <widget row="3" column="1" > | 780 | <widget row="2" column="0" > |
738 | <class>QComboBox</class> | 781 | <class>QLabel</class> |
739 | <property stdset="1"> | 782 | <property stdset="1"> |
740 | <name>name</name> | 783 | <name>name</name> |
741 | <cstring>frequency_ac</cstring> | 784 | <cstring>TextLabel1_2_2_3</cstring> |
785 | </property> | ||
786 | <property stdset="1"> | ||
787 | <name>sizePolicy</name> | ||
788 | <sizepolicy> | ||
789 | <hsizetype>3</hsizetype> | ||
790 | <vsizetype>1</vsizetype> | ||
791 | </sizepolicy> | ||
792 | </property> | ||
793 | <property stdset="1"> | ||
794 | <name>text</name> | ||
795 | <string>Suspend after</string> | ||
742 | </property> | 796 | </property> |
743 | </widget> | 797 | </widget> |
744 | <widget row="4" column="0" > | 798 | <widget row="4" column="0" rowspan="1" colspan="2" > |
745 | <class>QCheckBox</class> | 799 | <class>QCheckBox</class> |
746 | <property stdset="1"> | 800 | <property stdset="1"> |
747 | <name>name</name> | 801 | <name>name</name> |
748 | <cstring>LcdOffOnly_ac</cstring> | 802 | <cstring>LcdOffOnly_ac</cstring> |
749 | </property> | 803 | </property> |
750 | <property stdset="1"> | 804 | <property stdset="1"> |
751 | <name>sizePolicy</name> | 805 | <name>sizePolicy</name> |
752 | <sizepolicy> | 806 | <sizepolicy> |
753 | <hsizetype>7</hsizetype> | 807 | <hsizetype>7</hsizetype> |
754 | <vsizetype>0</vsizetype> | 808 | <vsizetype>0</vsizetype> |
755 | </sizepolicy> | 809 | </sizepolicy> |
756 | </property> | 810 | </property> |
757 | <property stdset="1"> | 811 | <property stdset="1"> |
758 | <name>text</name> | 812 | <name>text</name> |
759 | <string>Deactivate LCD only (does not suspend)</string> | 813 | <string>Deactivate LCD only (does not suspend)</string> |
760 | </property> | 814 | </property> |
761 | </widget> | 815 | </widget> |
762 | <widget row="3" column="0" > | 816 | <widget row="5" column="1" > |
763 | <class>QLabel</class> | 817 | <class>QComboBox</class> |
818 | <item> | ||
819 | <property> | ||
820 | <name>text</name> | ||
821 | <string>ignore</string> | ||
822 | </property> | ||
823 | </item> | ||
824 | <item> | ||
825 | <property> | ||
826 | <name>text</name> | ||
827 | <string>display off</string> | ||
828 | </property> | ||
829 | </item> | ||
830 | <item> | ||
831 | <property> | ||
832 | <name>text</name> | ||
833 | <string>suspend</string> | ||
834 | </property> | ||
835 | </item> | ||
764 | <property stdset="1"> | 836 | <property stdset="1"> |
765 | <name>name</name> | 837 | <name>name</name> |
766 | <cstring>TextLabel1_2_2_3_2</cstring> | 838 | <cstring>closeHingeAction_ac</cstring> |
767 | </property> | 839 | </property> |
840 | </widget> | ||
841 | <widget row="5" column="0" > | ||
842 | <class>QLabel</class> | ||
768 | <property stdset="1"> | 843 | <property stdset="1"> |
769 | <name>sizePolicy</name> | 844 | <name>name</name> |
770 | <sizepolicy> | 845 | <cstring>closeHingeLabel_ac</cstring> |
771 | <hsizetype>3</hsizetype> | ||
772 | <vsizetype>1</vsizetype> | ||
773 | </sizepolicy> | ||
774 | </property> | 846 | </property> |
775 | <property stdset="1"> | 847 | <property stdset="1"> |
776 | <name>text</name> | 848 | <name>text</name> |
777 | <string>CPU frequency</string> | 849 | <string>On closing the hinge</string> |
778 | </property> | 850 | </property> |
779 | </widget> | 851 | </widget> |
780 | </grid> | 852 | </grid> |
781 | </widget> | 853 | </widget> |
782 | <widget> | 854 | <widget> |
783 | <class>QGroupBox</class> | 855 | <class>QGroupBox</class> |
784 | <property stdset="1"> | 856 | <property stdset="1"> |
785 | <name>name</name> | 857 | <name>name</name> |
786 | <cstring>GroupLight_ac</cstring> | 858 | <cstring>GroupLight_ac</cstring> |
787 | </property> | 859 | </property> |
788 | <property stdset="1"> | 860 | <property stdset="1"> |
789 | <name>title</name> | 861 | <name>title</name> |
790 | <string>Backlight</string> | 862 | <string>Backlight</string> |
791 | </property> | 863 | </property> |
792 | <property> | 864 | <property> |
793 | <name>layoutMargin</name> | 865 | <name>layoutMargin</name> |
794 | </property> | 866 | </property> |
795 | <property> | 867 | <property> |
796 | <name>layoutSpacing</name> | 868 | <name>layoutSpacing</name> |
797 | </property> | 869 | </property> |
798 | <vbox> | 870 | <vbox> |
799 | <property stdset="1"> | 871 | <property stdset="1"> |
800 | <name>margin</name> | 872 | <name>margin</name> |
801 | <number>5</number> | 873 | <number>5</number> |
802 | </property> | 874 | </property> |
803 | <property stdset="1"> | 875 | <property stdset="1"> |
804 | <name>spacing</name> | 876 | <name>spacing</name> |
805 | <number>3</number> | 877 | <number>3</number> |
806 | </property> | 878 | </property> |
807 | <widget> | 879 | <widget> |
808 | <class>QSlider</class> | 880 | <class>QSlider</class> |
809 | <property stdset="1"> | 881 | <property stdset="1"> |