0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<ui version="4.0">
|
|
3 |
<class>MainWindow</class>
|
|
4 |
<widget class="QMainWindow" name="MainWindow">
|
|
5 |
<property name="geometry">
|
|
6 |
<rect>
|
|
7 |
<x>0</x>
|
|
8 |
<y>0</y>
|
|
9 |
<width>400</width>
|
|
10 |
<height>413</height>
|
|
11 |
</rect>
|
|
12 |
</property>
|
|
13 |
<property name="windowTitle">
|
|
14 |
<string>Style Sheet</string>
|
|
15 |
</property>
|
|
16 |
<property name="styleSheet">
|
|
17 |
<string notr="true">.QWidget {
|
|
18 |
background-color: beige;
|
|
19 |
}
|
|
20 |
|
|
21 |
/* Nice Windows-XP-style password character. */
|
|
22 |
QLineEdit[echoMode="2"] {
|
|
23 |
lineedit-password-character: 9679;
|
|
24 |
}
|
|
25 |
|
|
26 |
/* We provide a min-width and min-height for push buttons
|
|
27 |
so that they look elegant regardless of the width of the text. */
|
|
28 |
QPushButton {
|
|
29 |
background-color: palegoldenrod;
|
|
30 |
border-width: 2px;
|
|
31 |
border-color: darkkhaki;
|
|
32 |
border-style: solid;
|
|
33 |
border-radius: 5;
|
|
34 |
padding: 3px;
|
|
35 |
min-width: 9ex;
|
|
36 |
min-height: 2.5ex;
|
|
37 |
}
|
|
38 |
|
|
39 |
QPushButton:hover {
|
|
40 |
background-color: khaki;
|
|
41 |
}
|
|
42 |
|
|
43 |
/* Increase the padding, so the text is shifted when the button is
|
|
44 |
pressed. */
|
|
45 |
QPushButton:pressed {
|
|
46 |
padding-left: 5px;
|
|
47 |
padding-top: 5px;
|
|
48 |
background-color: #d0d67c;
|
|
49 |
}
|
|
50 |
|
|
51 |
QLabel, QAbstractButton {
|
|
52 |
font: bold;
|
|
53 |
}
|
|
54 |
|
|
55 |
/* Mark mandatory fields with a brownish color. */
|
|
56 |
.mandatory {
|
|
57 |
color: brown;
|
|
58 |
}
|
|
59 |
|
|
60 |
/* Bold text on status bar looks awful. */
|
|
61 |
QStatusBar QLabel {
|
|
62 |
font: normal;
|
|
63 |
}
|
|
64 |
|
|
65 |
QStatusBar::item {
|
|
66 |
border-width: 1;
|
|
67 |
border-color: darkkhaki;
|
|
68 |
border-style: solid;
|
|
69 |
border-radius: 2;
|
|
70 |
}
|
|
71 |
|
|
72 |
QComboBox, QLineEdit, QSpinBox, QTextEdit, QListView {
|
|
73 |
background-color: cornsilk;
|
|
74 |
selection-color: #0a214c;
|
|
75 |
selection-background-color: #C19A6B;
|
|
76 |
}
|
|
77 |
|
|
78 |
QListView {
|
|
79 |
show-decoration-selected: 1;
|
|
80 |
}
|
|
81 |
|
|
82 |
QListView::item:hover {
|
|
83 |
background-color: wheat;
|
|
84 |
}
|
|
85 |
|
|
86 |
/* We reserve 1 pixel space in padding. When we get the focus,
|
|
87 |
we kill the padding and enlarge the border. This makes the items
|
|
88 |
glow. */
|
|
89 |
QLineEdit, QFrame {
|
|
90 |
border-width: 2px;
|
|
91 |
padding: 1px;
|
|
92 |
border-style: solid;
|
|
93 |
border-color: darkkhaki;
|
|
94 |
border-radius: 5px;
|
|
95 |
}
|
|
96 |
|
|
97 |
/* As mentioned above, eliminate the padding and increase the border. */
|
|
98 |
QLineEdit:focus, QFrame:focus {
|
|
99 |
border-width: 3px;
|
|
100 |
padding: 0px;
|
|
101 |
}
|
|
102 |
|
|
103 |
/* A QLabel is a QFrame ... */
|
|
104 |
QLabel {
|
|
105 |
border: none;
|
|
106 |
padding: 0;
|
|
107 |
background: none;
|
|
108 |
}
|
|
109 |
|
|
110 |
/* A QToolTip is a QLabel ... */
|
|
111 |
QToolTip {
|
|
112 |
border: 2px solid darkkhaki;
|
|
113 |
padding: 5px;
|
|
114 |
border-radius: 3px;
|
|
115 |
opacity: 200;
|
|
116 |
}
|
|
117 |
|
|
118 |
/* Nice to have the background color change when hovered. */
|
|
119 |
QRadioButton:hover, QCheckBox:hover {
|
|
120 |
background-color: wheat;
|
|
121 |
}
|
|
122 |
|
|
123 |
/* Force the dialog's buttons to follow the Windows guidelines. */
|
|
124 |
QDialogButtonBox {
|
|
125 |
button-layout: 0;
|
|
126 |
}
|
|
127 |
|
|
128 |
|
|
129 |
</string>
|
|
130 |
</property>
|
|
131 |
<widget class="QWidget" name="centralwidget">
|
|
132 |
<layout class="QVBoxLayout">
|
|
133 |
<property name="spacing">
|
|
134 |
<number>6</number>
|
|
135 |
</property>
|
|
136 |
<property name="margin">
|
|
137 |
<number>9</number>
|
|
138 |
</property>
|
|
139 |
<item>
|
|
140 |
<widget class="QFrame" name="mainFrame">
|
|
141 |
<property name="frameShape">
|
|
142 |
<enum>QFrame::StyledPanel</enum>
|
|
143 |
</property>
|
|
144 |
<layout class="QGridLayout">
|
|
145 |
<property name="margin">
|
|
146 |
<number>9</number>
|
|
147 |
</property>
|
|
148 |
<property name="spacing">
|
|
149 |
<number>6</number>
|
|
150 |
</property>
|
|
151 |
<item row="6" column="0" colspan="5">
|
|
152 |
<widget class="QCheckBox" name="agreeCheckBox">
|
|
153 |
<property name="toolTip">
|
|
154 |
<string>Please read the LICENSE file before checking</string>
|
|
155 |
</property>
|
|
156 |
<property name="text">
|
|
157 |
<string>I &accept the terms and &conditions</string>
|
|
158 |
</property>
|
|
159 |
</widget>
|
|
160 |
</item>
|
|
161 |
<item row="5" column="0">
|
|
162 |
<widget class="QLabel" name="label">
|
|
163 |
<property name="text">
|
|
164 |
<string>Profession:</string>
|
|
165 |
</property>
|
|
166 |
<property name="alignment">
|
|
167 |
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
|
168 |
</property>
|
|
169 |
<property name="buddy">
|
|
170 |
<cstring>professionList</cstring>
|
|
171 |
</property>
|
|
172 |
</widget>
|
|
173 |
</item>
|
|
174 |
<item row="0" column="0">
|
|
175 |
<widget class="QLabel" name="nameLabel">
|
|
176 |
<property name="text">
|
|
177 |
<string>&Name:</string>
|
|
178 |
</property>
|
|
179 |
<property name="alignment">
|
|
180 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
181 |
</property>
|
|
182 |
<property name="buddy">
|
|
183 |
<cstring>nameCombo</cstring>
|
|
184 |
</property>
|
|
185 |
</widget>
|
|
186 |
</item>
|
|
187 |
<item row="1" column="1">
|
|
188 |
<widget class="QRadioButton" name="maleRadioButton">
|
|
189 |
<property name="toolTip">
|
|
190 |
<string>Check this if you are male</string>
|
|
191 |
</property>
|
|
192 |
<property name="text">
|
|
193 |
<string>&Male</string>
|
|
194 |
</property>
|
|
195 |
</widget>
|
|
196 |
</item>
|
|
197 |
<item row="3" column="0">
|
|
198 |
<widget class="QLabel" name="passwordLabel">
|
|
199 |
<property name="text">
|
|
200 |
<string>&Password:</string>
|
|
201 |
</property>
|
|
202 |
<property name="alignment">
|
|
203 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
204 |
</property>
|
|
205 |
<property name="buddy">
|
|
206 |
<cstring>passwordEdit</cstring>
|
|
207 |
</property>
|
|
208 |
</widget>
|
|
209 |
</item>
|
|
210 |
<item row="4" column="1" colspan="4">
|
|
211 |
<widget class="QComboBox" name="countryCombo">
|
|
212 |
<property name="toolTip">
|
|
213 |
<string>Specify country of origin</string>
|
|
214 |
</property>
|
|
215 |
<property name="statusTip">
|
|
216 |
<string>Specify country of origin</string>
|
|
217 |
</property>
|
|
218 |
<property name="currentIndex">
|
|
219 |
<number>6</number>
|
|
220 |
</property>
|
|
221 |
<item>
|
|
222 |
<property name="text">
|
|
223 |
<string>Egypt</string>
|
|
224 |
</property>
|
|
225 |
</item>
|
|
226 |
<item>
|
|
227 |
<property name="text">
|
|
228 |
<string>France</string>
|
|
229 |
</property>
|
|
230 |
</item>
|
|
231 |
<item>
|
|
232 |
<property name="text">
|
|
233 |
<string>Germany</string>
|
|
234 |
</property>
|
|
235 |
</item>
|
|
236 |
<item>
|
|
237 |
<property name="text">
|
|
238 |
<string>India</string>
|
|
239 |
</property>
|
|
240 |
</item>
|
|
241 |
<item>
|
|
242 |
<property name="text">
|
|
243 |
<string>Italy</string>
|
|
244 |
</property>
|
|
245 |
</item>
|
|
246 |
<item>
|
|
247 |
<property name="text">
|
|
248 |
<string>Norway</string>
|
|
249 |
</property>
|
|
250 |
</item>
|
|
251 |
<item>
|
|
252 |
<property name="text">
|
|
253 |
<string>Pakistan</string>
|
|
254 |
</property>
|
|
255 |
</item>
|
|
256 |
</widget>
|
|
257 |
</item>
|
|
258 |
<item row="2" column="0">
|
|
259 |
<widget class="QLabel" name="ageLabel">
|
|
260 |
<property name="text">
|
|
261 |
<string>&Age:</string>
|
|
262 |
</property>
|
|
263 |
<property name="alignment">
|
|
264 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
265 |
</property>
|
|
266 |
<property name="buddy">
|
|
267 |
<cstring>ageSpinBox</cstring>
|
|
268 |
</property>
|
|
269 |
</widget>
|
|
270 |
</item>
|
|
271 |
<item row="4" column="0">
|
|
272 |
<widget class="QLabel" name="countryLabel">
|
|
273 |
<property name="text">
|
|
274 |
<string>Country:</string>
|
|
275 |
</property>
|
|
276 |
<property name="alignment">
|
|
277 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
278 |
</property>
|
|
279 |
<property name="buddy">
|
|
280 |
<cstring>countryCombo</cstring>
|
|
281 |
</property>
|
|
282 |
</widget>
|
|
283 |
</item>
|
|
284 |
<item row="1" column="0">
|
|
285 |
<widget class="QLabel" name="genderLabel">
|
|
286 |
<property name="text">
|
|
287 |
<string>Gender:</string>
|
|
288 |
</property>
|
|
289 |
<property name="alignment">
|
|
290 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
291 |
</property>
|
|
292 |
</widget>
|
|
293 |
</item>
|
|
294 |
<item row="3" column="1" colspan="4">
|
|
295 |
<widget class="QLineEdit" name="passwordEdit">
|
|
296 |
<property name="toolTip">
|
|
297 |
<string>Specify your password</string>
|
|
298 |
</property>
|
|
299 |
<property name="statusTip">
|
|
300 |
<string>Specify your password</string>
|
|
301 |
</property>
|
|
302 |
<property name="text">
|
|
303 |
<string>Password</string>
|
|
304 |
</property>
|
|
305 |
<property name="echoMode">
|
|
306 |
<enum>QLineEdit::Password</enum>
|
|
307 |
</property>
|
|
308 |
</widget>
|
|
309 |
</item>
|
|
310 |
<item row="1" column="2" colspan="2">
|
|
311 |
<widget class="QRadioButton" name="femaleRadioButton">
|
|
312 |
<property name="styleSheet">
|
|
313 |
<string>Check this if you are female</string>
|
|
314 |
</property>
|
|
315 |
<property name="text">
|
|
316 |
<string>&Female</string>
|
|
317 |
</property>
|
|
318 |
</widget>
|
|
319 |
</item>
|
|
320 |
<item row="2" column="1" colspan="2">
|
|
321 |
<widget class="QSpinBox" name="ageSpinBox">
|
|
322 |
<property name="toolTip">
|
|
323 |
<string>Specify your age</string>
|
|
324 |
</property>
|
|
325 |
<property name="statusTip">
|
|
326 |
<string>Specify your age</string>
|
|
327 |
</property>
|
|
328 |
<property name="minimum">
|
|
329 |
<number>12</number>
|
|
330 |
</property>
|
|
331 |
<property name="value">
|
|
332 |
<number>22</number>
|
|
333 |
</property>
|
|
334 |
</widget>
|
|
335 |
</item>
|
|
336 |
<item row="0" column="1" colspan="4">
|
|
337 |
<widget class="QComboBox" name="nameCombo">
|
|
338 |
<property name="toolTip">
|
|
339 |
<string>Specify your name</string>
|
|
340 |
</property>
|
|
341 |
<property name="editable">
|
|
342 |
<bool>true</bool>
|
|
343 |
</property>
|
|
344 |
</widget>
|
|
345 |
</item>
|
|
346 |
<item row="1" column="4">
|
|
347 |
<spacer>
|
|
348 |
<property name="orientation">
|
|
349 |
<enum>Qt::Horizontal</enum>
|
|
350 |
</property>
|
|
351 |
<property name="sizeHint" stdset="0">
|
|
352 |
<size>
|
|
353 |
<width>40</width>
|
|
354 |
<height>20</height>
|
|
355 |
</size>
|
|
356 |
</property>
|
|
357 |
</spacer>
|
|
358 |
</item>
|
|
359 |
<item row="2" column="3" colspan="2">
|
|
360 |
<spacer>
|
|
361 |
<property name="orientation">
|
|
362 |
<enum>Qt::Horizontal</enum>
|
|
363 |
</property>
|
|
364 |
<property name="sizeHint" stdset="0">
|
|
365 |
<size>
|
|
366 |
<width>61</width>
|
|
367 |
<height>20</height>
|
|
368 |
</size>
|
|
369 |
</property>
|
|
370 |
</spacer>
|
|
371 |
</item>
|
|
372 |
<item row="7" column="3" colspan="2">
|
|
373 |
<widget class="QDialogButtonBox" name="buttonBox">
|
|
374 |
<property name="orientation">
|
|
375 |
<enum>Qt::Horizontal</enum>
|
|
376 |
</property>
|
|
377 |
<property name="standardButtons">
|
|
378 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
379 |
</property>
|
|
380 |
</widget>
|
|
381 |
</item>
|
|
382 |
<item row="5" column="1" colspan="4">
|
|
383 |
<widget class="QListWidget" name="professionList">
|
|
384 |
<property name="toolTip">
|
|
385 |
<string>Select your profession</string>
|
|
386 |
</property>
|
|
387 |
<property name="statusTip">
|
|
388 |
<string>Specify your name here</string>
|
|
389 |
</property>
|
|
390 |
<property name="whatsThis">
|
|
391 |
<string>Specify your name here</string>
|
|
392 |
</property>
|
|
393 |
<property name="currentRow">
|
|
394 |
<number>0</number>
|
|
395 |
</property>
|
|
396 |
<item>
|
|
397 |
<property name="text">
|
|
398 |
<string>Developer</string>
|
|
399 |
</property>
|
|
400 |
</item>
|
|
401 |
<item>
|
|
402 |
<property name="text">
|
|
403 |
<string>Student</string>
|
|
404 |
</property>
|
|
405 |
</item>
|
|
406 |
<item>
|
|
407 |
<property name="text">
|
|
408 |
<string>Fisherman</string>
|
|
409 |
</property>
|
|
410 |
</item>
|
|
411 |
</widget>
|
|
412 |
</item>
|
|
413 |
</layout>
|
|
414 |
</widget>
|
|
415 |
</item>
|
|
416 |
</layout>
|
|
417 |
</widget>
|
|
418 |
<widget class="QMenuBar" name="menubar">
|
|
419 |
<property name="geometry">
|
|
420 |
<rect>
|
|
421 |
<x>0</x>
|
|
422 |
<y>0</y>
|
|
423 |
<width>400</width>
|
|
424 |
<height>31</height>
|
|
425 |
</rect>
|
|
426 |
</property>
|
|
427 |
<widget class="QMenu" name="menu_File">
|
|
428 |
<property name="title">
|
|
429 |
<string>&File</string>
|
|
430 |
</property>
|
|
431 |
<addaction name="editStyleAction"/>
|
|
432 |
<addaction name="separator"/>
|
|
433 |
<addaction name="exitAction"/>
|
|
434 |
</widget>
|
|
435 |
<widget class="QMenu" name="menu_Help">
|
|
436 |
<property name="title">
|
|
437 |
<string>&Help</string>
|
|
438 |
</property>
|
|
439 |
<addaction name="aboutAction"/>
|
|
440 |
<addaction name="aboutQtAction"/>
|
|
441 |
</widget>
|
|
442 |
<addaction name="menu_File"/>
|
|
443 |
<addaction name="menu_Help"/>
|
|
444 |
</widget>
|
|
445 |
<widget class="QStatusBar" name="statusbar"/>
|
|
446 |
<action name="exitAction">
|
|
447 |
<property name="text">
|
|
448 |
<string>&Exit</string>
|
|
449 |
</property>
|
|
450 |
</action>
|
|
451 |
<action name="aboutQtAction">
|
|
452 |
<property name="text">
|
|
453 |
<string>About Qt</string>
|
|
454 |
</property>
|
|
455 |
</action>
|
|
456 |
<action name="editStyleAction">
|
|
457 |
<property name="text">
|
|
458 |
<string>Edit &Style...</string>
|
|
459 |
</property>
|
|
460 |
</action>
|
|
461 |
<action name="aboutAction">
|
|
462 |
<property name="text">
|
|
463 |
<string>About</string>
|
|
464 |
</property>
|
|
465 |
</action>
|
|
466 |
</widget>
|
|
467 |
<resources/>
|
|
468 |
<connections/>
|
|
469 |
</ui>
|