summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp12
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui4
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
@@ -29,237 +29,235 @@
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
55using namespace Opie; 55using namespace Opie;
56 56
57LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) 57LightSettings::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
146LightSettings::~LightSettings() 145LightSettings::~LightSettings()
147{ 146{
148} 147}
149 148
150void LightSettings::slotSliderTicks( int steps ) { 149void LightSettings::slotSliderTicks( int steps ) {
151 LightMinValueSlider->setTickInterval( steps ); 150 LightMinValueSlider->setTickInterval( steps );
152} 151}
153 152
154static void set_fl(int bright) 153static 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
161void LightSettings::reject() 160void LightSettings::reject()
162{ 161{
163 set_fl(initbright); 162 set_fl(initbright);
164 163
165 QDialog::reject(); 164 QDialog::reject();
166} 165}
167 166
168void LightSettings::accept() 167void 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
241void LightSettings::applyBrightness() 240void 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
249void LightSettings::applyBrightnessAC() 248void 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
261void LightSettings::done(int r) 259void 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
@@ -713,100 +713,96 @@
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">