Merge lp:~diegosarmentero/ubuntuone-windows-installer/wizard-sizes into lp:ubuntuone-windows-installer
- wizard-sizes
- Merge into trunk
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||||||
Approved revision: | 53 | ||||||||
Merged at revision: | 51 | ||||||||
Proposed branch: | lp:~diegosarmentero/ubuntuone-windows-installer/wizard-sizes | ||||||||
Merge into: | lp:ubuntuone-windows-installer | ||||||||
Diff against target: |
698 lines (+150/-119) 17 files modified
data/qt/choose_sign_in.ui (+3/-0) data/qt/congratulations.ui (+3/-0) data/qt/folders.ui (+3/-0) data/qt/license.ui (+3/-13) data/qt/local_folders.ui (+3/-0) data/qt/preferences.ui (+5/-1) data/qt/setup_account.ui (+80/-17) data/qt/side_widget.ui (+5/-38) data/qt/sign_in.ui (+3/-0) data/qt/sync_now_or_later.ui (+3/-0) data/qt/ubuntuone.qss (+0/-1) ubuntuone_installer/gui/qt/__init__.py (+17/-0) ubuntuone_installer/gui/qt/gui.py (+7/-6) ubuntuone_installer/gui/qt/main/windows.py (+2/-1) ubuntuone_installer/gui/qt/side_widget.py (+4/-8) ubuntuone_installer/gui/qt/tests/test_gui.py (+3/-3) ubuntuone_installer/gui/qt/tests/test_side_widget.py (+6/-31) |
||||||||
To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-windows-installer/wizard-sizes | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart (community) | Approve | ||
Roberto Alsina (community) | Approve | ||
Review via email: mp+73804@code.launchpad.net |
Commit message
Fixed Installer Sizes to fit the specs.
Description of the change
Fixed Installer Sizes to fit the specs.
- 46. By Roberto Alsina
-
Fix import order to make tools happy.
- 47. By Diego Sarmentero
-
Improved Are You Sure Dialog to avoid closing the wizard on dialog reject.
Natalia Bidart (nataliabidart) wrote : | # |
Has a conflict in ubuntuone_
- 48. By Diego Sarmentero
-
merge.
conflict resolved.
Diego Sarmentero (diegosarmentero) wrote : | # |
> Has a conflict in ubuntuone_
Resolved
Natalia Bidart (nataliabidart) wrote : | # |
I'm getting all these failures (confirmed they are not present in trunk):
[FAIL]
Traceback (most recent call last):
File "/home/
self.
twisted.
a = False
b = True
ubuntuone_
=======
[FAIL]
Traceback (most recent call last):
File "/home/
self.
twisted.
ubuntuone_
=======
[FAIL]
Traceback (most recent call last):
File "/home/
self.
twisted.
ubuntuone_
-------
Ran 125 tests in 1.513s
FAILED (skips=1, failures=3, successes=121)
- 49. By Diego Sarmentero
-
Assigning Bug.
- 50. By Diego Sarmentero
-
Fixed issue on starting control panel.
- 51. By Diego Sarmentero
-
Fixed tests.
- 52. By Diego Sarmentero
-
Removed unnecessary html from license.ui
- 53. By Diego Sarmentero
-
Assigning bug.
Natalia Bidart (nataliabidart) wrote : | # |
Looks good!
Preview Diff
1 | === modified file 'data/qt/choose_sign_in.ui' | |||
2 | --- data/qt/choose_sign_in.ui 2011-08-05 19:34:29 +0000 | |||
3 | +++ data/qt/choose_sign_in.ui 2011-09-07 11:54:54 +0000 | |||
4 | @@ -17,6 +17,9 @@ | |||
5 | 17 | <property name="leftMargin"> | 17 | <property name="leftMargin"> |
6 | 18 | <number>0</number> | 18 | <number>0</number> |
7 | 19 | </property> | 19 | </property> |
8 | 20 | <property name="topMargin"> | ||
9 | 21 | <number>0</number> | ||
10 | 22 | </property> | ||
11 | 20 | <property name="rightMargin"> | 23 | <property name="rightMargin"> |
12 | 21 | <number>0</number> | 24 | <number>0</number> |
13 | 22 | </property> | 25 | </property> |
14 | 23 | 26 | ||
15 | === modified file 'data/qt/congratulations.ui' | |||
16 | --- data/qt/congratulations.ui 2011-08-29 01:35:26 +0000 | |||
17 | +++ data/qt/congratulations.ui 2011-09-07 11:54:54 +0000 | |||
18 | @@ -17,6 +17,9 @@ | |||
19 | 17 | <property name="spacing"> | 17 | <property name="spacing"> |
20 | 18 | <number>24</number> | 18 | <number>24</number> |
21 | 19 | </property> | 19 | </property> |
22 | 20 | <property name="topMargin"> | ||
23 | 21 | <number>0</number> | ||
24 | 22 | </property> | ||
25 | 20 | <item> | 23 | <item> |
26 | 21 | <widget class="QLabel" name="label"> | 24 | <widget class="QLabel" name="label"> |
27 | 22 | <property name="font"> | 25 | <property name="font"> |
28 | 23 | 26 | ||
29 | === modified file 'data/qt/folders.ui' | |||
30 | --- data/qt/folders.ui 2011-08-10 21:06:46 +0000 | |||
31 | +++ data/qt/folders.ui 2011-09-07 11:54:54 +0000 | |||
32 | @@ -14,6 +14,9 @@ | |||
33 | 14 | <string>Form</string> | 14 | <string>Form</string> |
34 | 15 | </property> | 15 | </property> |
35 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
36 | 17 | <property name="topMargin"> | ||
37 | 18 | <number>0</number> | ||
38 | 19 | </property> | ||
39 | 17 | <item> | 20 | <item> |
40 | 18 | <layout class="QHBoxLayout" name="horizontalLayout"> | 21 | <layout class="QHBoxLayout" name="horizontalLayout"> |
41 | 19 | <item> | 22 | <item> |
42 | 20 | 23 | ||
43 | === modified file 'data/qt/license.ui' | |||
44 | --- data/qt/license.ui 2011-07-12 03:24:48 +0000 | |||
45 | +++ data/qt/license.ui 2011-09-07 11:54:54 +0000 | |||
46 | @@ -14,21 +14,11 @@ | |||
47 | 14 | <string>Form</string> | 14 | <string>Form</string> |
48 | 15 | </property> | 15 | </property> |
49 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
50 | 17 | <property name="topMargin"> | ||
51 | 18 | <number>0</number> | ||
52 | 19 | </property> | ||
53 | 17 | <item> | 20 | <item> |
54 | 18 | <widget class="QTextBrowser" name="textBrowser"> | 21 | <widget class="QTextBrowser" name="textBrowser"> |
55 | 19 | <property name="html"> | ||
56 | 20 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
57 | 21 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
58 | 22 | p, li { white-space: pre-wrap; } | ||
59 | 23 | </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> | ||
60 | 24 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600;">License Agreement</span></p> | ||
61 | 25 | <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> | ||
62 | 26 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.</span></p> | ||
63 | 27 | <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> | ||
64 | 28 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Ubuntu One Basic is free, while additional service add-ons may be paid for services.</span></p> | ||
65 | 29 | <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> | ||
66 | 30 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">As free software, this programme is distributed without warranty. See the GNU General Public License for more details at </span><a href="http://www.gnu.org/licenses"><span style=" font-size:8pt; text-decoration: underline; color:#dd4814;">http://www.gnu.org/licenses</span></a></p></body></html></string> | ||
67 | 31 | </property> | ||
68 | 32 | <property name="openExternalLinks"> | 22 | <property name="openExternalLinks"> |
69 | 33 | <bool>true</bool> | 23 | <bool>true</bool> |
70 | 34 | </property> | 24 | </property> |
71 | 35 | 25 | ||
72 | === modified file 'data/qt/local_folders.ui' | |||
73 | --- data/qt/local_folders.ui 2011-08-15 13:29:08 +0000 | |||
74 | +++ data/qt/local_folders.ui 2011-09-07 11:54:54 +0000 | |||
75 | @@ -14,6 +14,9 @@ | |||
76 | 14 | <string>Form</string> | 14 | <string>Form</string> |
77 | 15 | </property> | 15 | </property> |
78 | 16 | <layout class="QVBoxLayout" name="verticalLayout_2"> | 16 | <layout class="QVBoxLayout" name="verticalLayout_2"> |
79 | 17 | <property name="topMargin"> | ||
80 | 18 | <number>0</number> | ||
81 | 19 | </property> | ||
82 | 17 | <item> | 20 | <item> |
83 | 18 | <widget class="QLabel" name="label"> | 21 | <widget class="QLabel" name="label"> |
84 | 19 | <property name="text"> | 22 | <property name="text"> |
85 | 20 | 23 | ||
86 | === modified file 'data/qt/preferences.ui' | |||
87 | --- data/qt/preferences.ui 2011-08-10 21:06:46 +0000 | |||
88 | +++ data/qt/preferences.ui 2011-09-07 11:54:54 +0000 | |||
89 | @@ -13,7 +13,11 @@ | |||
90 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
91 | 14 | <string>Form</string> | 14 | <string>Form</string> |
92 | 15 | </property> | 15 | </property> |
94 | 16 | <layout class="QVBoxLayout" name="verticalLayout"/> | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
95 | 17 | <property name="topMargin"> | ||
96 | 18 | <number>0</number> | ||
97 | 19 | </property> | ||
98 | 20 | </layout> | ||
99 | 17 | </widget> | 21 | </widget> |
100 | 18 | <resources/> | 22 | <resources/> |
101 | 19 | <connections/> | 23 | <connections/> |
102 | 20 | 24 | ||
103 | === modified file 'data/qt/setup_account.ui' | |||
104 | --- data/qt/setup_account.ui 2011-08-29 12:49:25 +0000 | |||
105 | +++ data/qt/setup_account.ui 2011-09-07 11:54:54 +0000 | |||
106 | @@ -6,8 +6,8 @@ | |||
107 | 6 | <rect> | 6 | <rect> |
108 | 7 | <x>0</x> | 7 | <x>0</x> |
109 | 8 | <y>0</y> | 8 | <y>0</y> |
112 | 9 | <width>583</width> | 9 | <width>543</width> |
113 | 10 | <height>538</height> | 10 | <height>523</height> |
114 | 11 | </rect> | 11 | </rect> |
115 | 12 | </property> | 12 | </property> |
116 | 13 | <property name="sizePolicy"> | 13 | <property name="sizePolicy"> |
117 | @@ -29,11 +29,20 @@ | |||
118 | 29 | <property name="spacing"> | 29 | <property name="spacing"> |
119 | 30 | <number>0</number> | 30 | <number>0</number> |
120 | 31 | </property> | 31 | </property> |
121 | 32 | <property name="leftMargin"> | ||
122 | 33 | <number>0</number> | ||
123 | 34 | </property> | ||
124 | 35 | <property name="topMargin"> | ||
125 | 36 | <number>0</number> | ||
126 | 37 | </property> | ||
127 | 32 | <property name="rightMargin"> | 38 | <property name="rightMargin"> |
129 | 33 | <number>6</number> | 39 | <number>3</number> |
130 | 40 | </property> | ||
131 | 41 | <property name="bottomMargin"> | ||
132 | 42 | <number>0</number> | ||
133 | 34 | </property> | 43 | </property> |
134 | 35 | <item> | 44 | <item> |
136 | 36 | <layout class="QGridLayout" name="gridLayout" columnminimumwidth="310,250"> | 45 | <layout class="QGridLayout" name="gridLayout" columnminimumwidth="310,220"> |
137 | 37 | <item row="0" column="0"> | 46 | <item row="0" column="0"> |
138 | 38 | <widget class="QLabel" name="password_info_label"> | 47 | <widget class="QLabel" name="password_info_label"> |
139 | 39 | <property name="sizePolicy"> | 48 | <property name="sizePolicy"> |
140 | @@ -412,9 +421,15 @@ | |||
141 | 412 | <verstretch>0</verstretch> | 421 | <verstretch>0</verstretch> |
142 | 413 | </sizepolicy> | 422 | </sizepolicy> |
143 | 414 | </property> | 423 | </property> |
144 | 424 | <property name="minimumSize"> | ||
145 | 425 | <size> | ||
146 | 426 | <width>220</width> | ||
147 | 427 | <height>0</height> | ||
148 | 428 | </size> | ||
149 | 429 | </property> | ||
150 | 415 | <property name="maximumSize"> | 430 | <property name="maximumSize"> |
151 | 416 | <size> | 431 | <size> |
153 | 417 | <width>300</width> | 432 | <width>220</width> |
154 | 418 | <height>16777215</height> | 433 | <height>16777215</height> |
155 | 419 | </size> | 434 | </size> |
156 | 420 | </property> | 435 | </property> |
157 | @@ -428,14 +443,17 @@ | |||
158 | 428 | <bool>true</bool> | 443 | <bool>true</bool> |
159 | 429 | </property> | 444 | </property> |
160 | 430 | <property name="indent"> | 445 | <property name="indent"> |
162 | 431 | <number>20</number> | 446 | <number>0</number> |
163 | 432 | </property> | 447 | </property> |
164 | 433 | </widget> | 448 | </widget> |
165 | 434 | </item> | 449 | </item> |
166 | 435 | <item row="1" column="1"> | 450 | <item row="1" column="1"> |
167 | 436 | <layout class="QVBoxLayout" name="verticalLayout_7"> | 451 | <layout class="QVBoxLayout" name="verticalLayout_7"> |
168 | 452 | <property name="spacing"> | ||
169 | 453 | <number>0</number> | ||
170 | 454 | </property> | ||
171 | 437 | <property name="leftMargin"> | 455 | <property name="leftMargin"> |
173 | 438 | <number>10</number> | 456 | <number>0</number> |
174 | 439 | </property> | 457 | </property> |
175 | 440 | <item> | 458 | <item> |
176 | 441 | <widget class="QLabel" name="name_assistance"> | 459 | <widget class="QLabel" name="name_assistance"> |
177 | @@ -445,9 +463,15 @@ | |||
178 | 445 | <verstretch>0</verstretch> | 463 | <verstretch>0</verstretch> |
179 | 446 | </sizepolicy> | 464 | </sizepolicy> |
180 | 447 | </property> | 465 | </property> |
181 | 466 | <property name="minimumSize"> | ||
182 | 467 | <size> | ||
183 | 468 | <width>220</width> | ||
184 | 469 | <height>0</height> | ||
185 | 470 | </size> | ||
186 | 471 | </property> | ||
187 | 448 | <property name="maximumSize"> | 472 | <property name="maximumSize"> |
188 | 449 | <size> | 473 | <size> |
190 | 450 | <width>300</width> | 474 | <width>220</width> |
191 | 451 | <height>16777215</height> | 475 | <height>16777215</height> |
192 | 452 | </size> | 476 | </size> |
193 | 453 | </property> | 477 | </property> |
194 | @@ -457,14 +481,20 @@ | |||
195 | 457 | <property name="alignment"> | 481 | <property name="alignment"> |
196 | 458 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> | 482 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> |
197 | 459 | </property> | 483 | </property> |
198 | 484 | <property name="wordWrap"> | ||
199 | 485 | <bool>true</bool> | ||
200 | 486 | </property> | ||
201 | 460 | </widget> | 487 | </widget> |
202 | 461 | </item> | 488 | </item> |
203 | 462 | </layout> | 489 | </layout> |
204 | 463 | </item> | 490 | </item> |
205 | 464 | <item row="3" column="1"> | 491 | <item row="3" column="1"> |
206 | 465 | <layout class="QVBoxLayout" name="verticalLayout_8"> | 492 | <layout class="QVBoxLayout" name="verticalLayout_8"> |
207 | 493 | <property name="spacing"> | ||
208 | 494 | <number>0</number> | ||
209 | 495 | </property> | ||
210 | 466 | <property name="leftMargin"> | 496 | <property name="leftMargin"> |
212 | 467 | <number>10</number> | 497 | <number>0</number> |
213 | 468 | </property> | 498 | </property> |
214 | 469 | <item> | 499 | <item> |
215 | 470 | <widget class="QLabel" name="email_assistance"> | 500 | <widget class="QLabel" name="email_assistance"> |
216 | @@ -474,9 +504,15 @@ | |||
217 | 474 | <verstretch>0</verstretch> | 504 | <verstretch>0</verstretch> |
218 | 475 | </sizepolicy> | 505 | </sizepolicy> |
219 | 476 | </property> | 506 | </property> |
220 | 507 | <property name="minimumSize"> | ||
221 | 508 | <size> | ||
222 | 509 | <width>220</width> | ||
223 | 510 | <height>0</height> | ||
224 | 511 | </size> | ||
225 | 512 | </property> | ||
226 | 477 | <property name="maximumSize"> | 513 | <property name="maximumSize"> |
227 | 478 | <size> | 514 | <size> |
229 | 479 | <width>300</width> | 515 | <width>220</width> |
230 | 480 | <height>16777215</height> | 516 | <height>16777215</height> |
231 | 481 | </size> | 517 | </size> |
232 | 482 | </property> | 518 | </property> |
233 | @@ -486,14 +522,20 @@ | |||
234 | 486 | <property name="alignment"> | 522 | <property name="alignment"> |
235 | 487 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> | 523 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> |
236 | 488 | </property> | 524 | </property> |
237 | 525 | <property name="wordWrap"> | ||
238 | 526 | <bool>true</bool> | ||
239 | 527 | </property> | ||
240 | 489 | </widget> | 528 | </widget> |
241 | 490 | </item> | 529 | </item> |
242 | 491 | </layout> | 530 | </layout> |
243 | 492 | </item> | 531 | </item> |
244 | 493 | <item row="4" column="1"> | 532 | <item row="4" column="1"> |
245 | 494 | <layout class="QVBoxLayout" name="verticalLayout_9"> | 533 | <layout class="QVBoxLayout" name="verticalLayout_9"> |
246 | 534 | <property name="spacing"> | ||
247 | 535 | <number>0</number> | ||
248 | 536 | </property> | ||
249 | 495 | <property name="leftMargin"> | 537 | <property name="leftMargin"> |
251 | 496 | <number>10</number> | 538 | <number>0</number> |
252 | 497 | </property> | 539 | </property> |
253 | 498 | <item> | 540 | <item> |
254 | 499 | <widget class="QLabel" name="confirm_email_assistance"> | 541 | <widget class="QLabel" name="confirm_email_assistance"> |
255 | @@ -503,9 +545,15 @@ | |||
256 | 503 | <verstretch>0</verstretch> | 545 | <verstretch>0</verstretch> |
257 | 504 | </sizepolicy> | 546 | </sizepolicy> |
258 | 505 | </property> | 547 | </property> |
259 | 548 | <property name="minimumSize"> | ||
260 | 549 | <size> | ||
261 | 550 | <width>220</width> | ||
262 | 551 | <height>0</height> | ||
263 | 552 | </size> | ||
264 | 553 | </property> | ||
265 | 506 | <property name="maximumSize"> | 554 | <property name="maximumSize"> |
266 | 507 | <size> | 555 | <size> |
268 | 508 | <width>300</width> | 556 | <width>220</width> |
269 | 509 | <height>16777215</height> | 557 | <height>16777215</height> |
270 | 510 | </size> | 558 | </size> |
271 | 511 | </property> | 559 | </property> |
272 | @@ -515,6 +563,12 @@ | |||
273 | 515 | <property name="alignment"> | 563 | <property name="alignment"> |
274 | 516 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> | 564 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> |
275 | 517 | </property> | 565 | </property> |
276 | 566 | <property name="wordWrap"> | ||
277 | 567 | <bool>true</bool> | ||
278 | 568 | </property> | ||
279 | 569 | <property name="indent"> | ||
280 | 570 | <number>0</number> | ||
281 | 571 | </property> | ||
282 | 518 | </widget> | 572 | </widget> |
283 | 519 | </item> | 573 | </item> |
284 | 520 | </layout> | 574 | </layout> |
285 | @@ -527,17 +581,26 @@ | |||
286 | 527 | <verstretch>0</verstretch> | 581 | <verstretch>0</verstretch> |
287 | 528 | </sizepolicy> | 582 | </sizepolicy> |
288 | 529 | </property> | 583 | </property> |
289 | 584 | <property name="minimumSize"> | ||
290 | 585 | <size> | ||
291 | 586 | <width>220</width> | ||
292 | 587 | <height>0</height> | ||
293 | 588 | </size> | ||
294 | 589 | </property> | ||
295 | 530 | <property name="maximumSize"> | 590 | <property name="maximumSize"> |
296 | 531 | <size> | 591 | <size> |
298 | 532 | <width>300</width> | 592 | <width>220</width> |
299 | 533 | <height>16777215</height> | 593 | <height>16777215</height> |
300 | 534 | </size> | 594 | </size> |
301 | 535 | </property> | 595 | </property> |
302 | 536 | <property name="text"> | 596 | <property name="text"> |
303 | 537 | <string>password_assistance</string> | 597 | <string>password_assistance</string> |
304 | 538 | </property> | 598 | </property> |
305 | 599 | <property name="wordWrap"> | ||
306 | 600 | <bool>true</bool> | ||
307 | 601 | </property> | ||
308 | 539 | <property name="indent"> | 602 | <property name="indent"> |
310 | 540 | <number>20</number> | 603 | <number>17</number> |
311 | 541 | </property> | 604 | </property> |
312 | 542 | </widget> | 605 | </widget> |
313 | 543 | </item> | 606 | </item> |
314 | @@ -552,7 +615,7 @@ | |||
315 | 552 | <property name="sizeHint" stdset="0"> | 615 | <property name="sizeHint" stdset="0"> |
316 | 553 | <size> | 616 | <size> |
317 | 554 | <width>20</width> | 617 | <width>20</width> |
319 | 555 | <height>20</height> | 618 | <height>15</height> |
320 | 556 | </size> | 619 | </size> |
321 | 557 | </property> | 620 | </property> |
322 | 558 | </spacer> | 621 | </spacer> |
323 | @@ -568,7 +631,7 @@ | |||
324 | 568 | <property name="sizeHint" stdset="0"> | 631 | <property name="sizeHint" stdset="0"> |
325 | 569 | <size> | 632 | <size> |
326 | 570 | <width>20</width> | 633 | <width>20</width> |
328 | 571 | <height>20</height> | 634 | <height>15</height> |
329 | 572 | </size> | 635 | </size> |
330 | 573 | </property> | 636 | </property> |
331 | 574 | </spacer> | 637 | </spacer> |
332 | @@ -584,7 +647,7 @@ | |||
333 | 584 | <property name="sizeHint" stdset="0"> | 647 | <property name="sizeHint" stdset="0"> |
334 | 585 | <size> | 648 | <size> |
335 | 586 | <width>20</width> | 649 | <width>20</width> |
337 | 587 | <height>20</height> | 650 | <height>15</height> |
338 | 588 | </size> | 651 | </size> |
339 | 589 | </property> | 652 | </property> |
340 | 590 | </spacer> | 653 | </spacer> |
341 | 591 | 654 | ||
342 | === modified file 'data/qt/side_widget.ui' | |||
343 | --- data/qt/side_widget.ui 2011-07-14 10:53:49 +0000 | |||
344 | +++ data/qt/side_widget.ui 2011-09-07 11:54:54 +0000 | |||
345 | @@ -6,8 +6,8 @@ | |||
346 | 6 | <rect> | 6 | <rect> |
347 | 7 | <x>0</x> | 7 | <x>0</x> |
348 | 8 | <y>0</y> | 8 | <y>0</y> |
351 | 9 | <width>200</width> | 9 | <width>170</width> |
352 | 10 | <height>563</height> | 10 | <height>466</height> |
353 | 11 | </rect> | 11 | </rect> |
354 | 12 | </property> | 12 | </property> |
355 | 13 | <property name="sizePolicy"> | 13 | <property name="sizePolicy"> |
356 | @@ -18,8 +18,8 @@ | |||
357 | 18 | </property> | 18 | </property> |
358 | 19 | <property name="minimumSize"> | 19 | <property name="minimumSize"> |
359 | 20 | <size> | 20 | <size> |
362 | 21 | <width>200</width> | 21 | <width>170</width> |
363 | 22 | <height>0</height> | 22 | <height>466</height> |
364 | 23 | </size> | 23 | </size> |
365 | 24 | </property> | 24 | </property> |
366 | 25 | <property name="windowTitle"> | 25 | <property name="windowTitle"> |
367 | @@ -36,7 +36,7 @@ | |||
368 | 36 | <number>40</number> | 36 | <number>40</number> |
369 | 37 | </property> | 37 | </property> |
370 | 38 | <property name="margin"> | 38 | <property name="margin"> |
372 | 39 | <number>10</number> | 39 | <number>0</number> |
373 | 40 | </property> | 40 | </property> |
374 | 41 | <item> | 41 | <item> |
375 | 42 | <widget class="QLabel" name="ubuntu_one_logo_label"> | 42 | <widget class="QLabel" name="ubuntu_one_logo_label"> |
376 | @@ -145,39 +145,6 @@ | |||
377 | 145 | </layout> | 145 | </layout> |
378 | 146 | </item> | 146 | </item> |
379 | 147 | <item> | 147 | <item> |
380 | 148 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
381 | 149 | <property name="spacing"> | ||
382 | 150 | <number>7</number> | ||
383 | 151 | </property> | ||
384 | 152 | <item> | ||
385 | 153 | <widget class="QLabel" name="choose_icon_label"> | ||
386 | 154 | <property name="sizePolicy"> | ||
387 | 155 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
388 | 156 | <horstretch>0</horstretch> | ||
389 | 157 | <verstretch>0</verstretch> | ||
390 | 158 | </sizepolicy> | ||
391 | 159 | </property> | ||
392 | 160 | <property name="text"> | ||
393 | 161 | <string/> | ||
394 | 162 | </property> | ||
395 | 163 | <property name="pixmap"> | ||
396 | 164 | <pixmap resource="images.qrc">:/progress_arrow_grey.png</pixmap> | ||
397 | 165 | </property> | ||
398 | 166 | </widget> | ||
399 | 167 | </item> | ||
400 | 168 | <item> | ||
401 | 169 | <widget class="QLabel" name="choose_services_label"> | ||
402 | 170 | <property name="enabled"> | ||
403 | 171 | <bool>true</bool> | ||
404 | 172 | </property> | ||
405 | 173 | <property name="text"> | ||
406 | 174 | <string>Choose services</string> | ||
407 | 175 | </property> | ||
408 | 176 | </widget> | ||
409 | 177 | </item> | ||
410 | 178 | </layout> | ||
411 | 179 | </item> | ||
412 | 180 | <item> | ||
413 | 181 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | 148 | <layout class="QHBoxLayout" name="horizontalLayout_4"> |
414 | 182 | <property name="spacing"> | 149 | <property name="spacing"> |
415 | 183 | <number>7</number> | 150 | <number>7</number> |
416 | 184 | 151 | ||
417 | === modified file 'data/qt/sign_in.ui' | |||
418 | --- data/qt/sign_in.ui 2011-07-27 14:53:56 +0000 | |||
419 | +++ data/qt/sign_in.ui 2011-09-07 11:54:54 +0000 | |||
420 | @@ -14,6 +14,9 @@ | |||
421 | 14 | <string>Form</string> | 14 | <string>Form</string> |
422 | 15 | </property> | 15 | </property> |
423 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
424 | 17 | <property name="topMargin"> | ||
425 | 18 | <number>0</number> | ||
426 | 19 | </property> | ||
427 | 17 | <item> | 20 | <item> |
428 | 18 | <widget class="QLabel" name="label"> | 21 | <widget class="QLabel" name="label"> |
429 | 19 | <property name="font"> | 22 | <property name="font"> |
430 | 20 | 23 | ||
431 | === modified file 'data/qt/sync_now_or_later.ui' | |||
432 | --- data/qt/sync_now_or_later.ui 2011-06-28 19:18:35 +0000 | |||
433 | +++ data/qt/sync_now_or_later.ui 2011-09-07 11:54:54 +0000 | |||
434 | @@ -17,6 +17,9 @@ | |||
435 | 17 | <property name="spacing"> | 17 | <property name="spacing"> |
436 | 18 | <number>24</number> | 18 | <number>24</number> |
437 | 19 | </property> | 19 | </property> |
438 | 20 | <property name="topMargin"> | ||
439 | 21 | <number>0</number> | ||
440 | 22 | </property> | ||
441 | 20 | <item> | 23 | <item> |
442 | 21 | <widget class="QLabel" name="label"> | 24 | <widget class="QLabel" name="label"> |
443 | 22 | <property name="font"> | 25 | <property name="font"> |
444 | 23 | 26 | ||
445 | === modified file 'data/qt/ubuntuone.qss' | |||
446 | --- data/qt/ubuntuone.qss 2011-08-24 18:08:14 +0000 | |||
447 | +++ data/qt/ubuntuone.qss 2011-09-07 11:54:54 +0000 | |||
448 | @@ -10,7 +10,6 @@ | |||
449 | 10 | border-right-width: 1px; | 10 | border-right-width: 1px; |
450 | 11 | color: white; | 11 | color: white; |
451 | 12 | min-height: 100px; | 12 | min-height: 100px; |
452 | 13 | margin-left: 10px; | ||
453 | 14 | } | 13 | } |
454 | 15 | 14 | ||
455 | 16 | QWizard, | 15 | QWizard, |
456 | 17 | 16 | ||
457 | === modified file 'ubuntuone_installer/gui/qt/__init__.py' | |||
458 | --- ubuntuone_installer/gui/qt/__init__.py 2011-06-22 10:47:08 +0000 | |||
459 | +++ ubuntuone_installer/gui/qt/__init__.py 2011-09-07 11:54:54 +0000 | |||
460 | @@ -17,3 +17,20 @@ | |||
461 | 17 | # with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
462 | 18 | 18 | ||
463 | 19 | """The Qt graphical interface for the Ubuntu One Installer.""" | 19 | """The Qt graphical interface for the Ubuntu One Installer.""" |
464 | 20 | |||
465 | 21 | |||
466 | 22 | LICENSE_CONTENT = """<html> | ||
467 | 23 | <body style="font-family:Ubuntu"> | ||
468 | 24 | <h2>License Agreement</h2> | ||
469 | 25 | <p>This program is free software: you can redistribute it and/or modify | ||
470 | 26 | it under the terms of the GNU General Public License version 3, as | ||
471 | 27 | published by the Free Software Foundation.</p> | ||
472 | 28 | <p>Ubuntu One Basic is free, while additional service add-ons may be | ||
473 | 29 | paid for services.</p> | ||
474 | 30 | <p>As free software, this programme is distributed without warranty. | ||
475 | 31 | See the GNU General Public License for more details at | ||
476 | 32 | <a href='http://www.gnu.org/licenses' | ||
477 | 33 | style="color:#dd4814;">http://www.gnu.org/licenses</a> | ||
478 | 34 | </p> | ||
479 | 35 | </body> | ||
480 | 36 | <html>""" | ||
481 | 20 | 37 | ||
482 | === modified file 'ubuntuone_installer/gui/qt/gui.py' | |||
483 | --- ubuntuone_installer/gui/qt/gui.py 2011-09-06 17:30:24 +0000 | |||
484 | +++ ubuntuone_installer/gui/qt/gui.py 2011-09-07 11:54:54 +0000 | |||
485 | @@ -64,7 +64,7 @@ | |||
486 | 64 | setup_account_ui, | 64 | setup_account_ui, |
487 | 65 | ) | 65 | ) |
488 | 66 | 66 | ||
490 | 67 | from ubuntuone_installer.gui.qt import utils | 67 | from ubuntuone_installer.gui import qt |
491 | 68 | from ubuntuone_installer.gui.qt.are_you_sure import AreYouSure | 68 | from ubuntuone_installer.gui.qt.are_you_sure import AreYouSure |
492 | 69 | from ubuntuone_installer.gui.qt.currentuser import CurrentUserController | 69 | from ubuntuone_installer.gui.qt.currentuser import CurrentUserController |
493 | 70 | from ubuntuone_installer.gui.qt.folders import FoldersPage | 70 | from ubuntuone_installer.gui.qt.folders import FoldersPage |
494 | @@ -98,6 +98,7 @@ | |||
495 | 98 | self._next_id = None | 98 | self._next_id = None |
496 | 99 | super(LicensePage, self).__init__(license_ui.Ui_Form(), None, parent) | 99 | super(LicensePage, self).__init__(license_ui.Ui_Form(), None, parent) |
497 | 100 | self.header.setVisible(False) | 100 | self.header.setVisible(False) |
498 | 101 | self.ui.textBrowser.setHtml(qt.LICENSE_CONTENT) | ||
499 | 101 | 102 | ||
500 | 102 | # Invalid names of Qt-inherited methods | 103 | # Invalid names of Qt-inherited methods |
501 | 103 | # pylint: disable=C0103 | 104 | # pylint: disable=C0103 |
502 | @@ -285,8 +286,8 @@ | |||
503 | 285 | self.setWindowFlags(flags) | 286 | self.setWindowFlags(flags) |
504 | 286 | 287 | ||
505 | 287 | self.setWindowTitle(APP_NAME) | 288 | self.setWindowTitle(APP_NAME) |
508 | 288 | self.setMinimumHeight(590) | 289 | self.setMinimumHeight(538) |
509 | 289 | self.setMinimumWidth(800) | 290 | self.setMinimumWidth(740) |
510 | 290 | self.setWizardStyle(self.ModernStyle) | 291 | self.setWizardStyle(self.ModernStyle) |
511 | 291 | self.close_callback = close_callback | 292 | self.close_callback = close_callback |
512 | 292 | 293 | ||
513 | @@ -426,10 +427,10 @@ | |||
514 | 426 | """The main window is being closed, call any custom callback.""" | 427 | """The main window is being closed, call any custom callback.""" |
515 | 427 | # Finished, not cancelled | 428 | # Finished, not cancelled |
516 | 428 | if result == 1: # Cancelled | 429 | if result == 1: # Cancelled |
518 | 429 | utils.start_control_panel() | 430 | qt.utils.start_control_panel() |
519 | 430 | elif self.currentId() == self.LICENSE_PAGE_ID: | 431 | elif self.currentId() == self.LICENSE_PAGE_ID: |
522 | 431 | if AreYouSure(self).exec_(): | 432 | if not AreYouSure(self).exec_(): |
523 | 432 | utils.uninstall_application() | 433 | qt.utils.uninstall_application() |
524 | 433 | else: | 434 | else: |
525 | 434 | return | 435 | return |
526 | 435 | elif self.currentId() != self.CONGRATULATIONS_PAGE: | 436 | elif self.currentId() != self.CONGRATULATIONS_PAGE: |
527 | 436 | 437 | ||
528 | === modified file 'ubuntuone_installer/gui/qt/main/windows.py' | |||
529 | --- ubuntuone_installer/gui/qt/main/windows.py 2011-09-01 11:15:49 +0000 | |||
530 | +++ ubuntuone_installer/gui/qt/main/windows.py 2011-09-07 11:54:54 +0000 | |||
531 | @@ -47,7 +47,8 @@ | |||
532 | 47 | """Handle credentials success.""" | 47 | """Handle credentials success.""" |
533 | 48 | if creds: # Have credentials already | 48 | if creds: # Have credentials already |
534 | 49 | try: | 49 | try: |
536 | 50 | gui.utils.start_control_panel() | 50 | from ubuntuone_installer.gui.qt import utils |
537 | 51 | utils.start_control_panel() | ||
538 | 51 | except OSError: | 52 | except OSError: |
539 | 52 | QtGui.QMessageBox.critical( | 53 | QtGui.QMessageBox.critical( |
540 | 53 | None, "Ubuntu One", gui.STARTING_CP_ERROR) | 54 | None, "Ubuntu One", gui.STARTING_CP_ERROR) |
541 | 54 | 55 | ||
542 | === modified file 'ubuntuone_installer/gui/qt/side_widget.py' | |||
543 | --- ubuntuone_installer/gui/qt/side_widget.py 2011-07-14 03:55:39 +0000 | |||
544 | +++ ubuntuone_installer/gui/qt/side_widget.py 2011-09-07 11:54:54 +0000 | |||
545 | @@ -33,9 +33,8 @@ | |||
546 | 33 | 33 | ||
547 | 34 | install_stage = 0 | 34 | install_stage = 0 |
548 | 35 | signin_stage = 1 | 35 | signin_stage = 1 |
552 | 36 | choose_services_stage = 2 | 36 | select_sync_folders_stage = 2 |
553 | 37 | select_sync_folders_stage = 3 | 37 | sync_stage = 3 |
551 | 38 | sync_stage = 4 | ||
554 | 39 | 38 | ||
555 | 40 | def __init__(self, *args, **kwargs): | 39 | def __init__(self, *args, **kwargs): |
556 | 41 | super(SideWidget, self).__init__(*args, **kwargs) | 40 | super(SideWidget, self).__init__(*args, **kwargs) |
557 | @@ -48,13 +47,10 @@ | |||
558 | 48 | self.stage = stage | 47 | self.stage = stage |
559 | 49 | self.ui.install_label.setEnabled(stage >= 0) | 48 | self.ui.install_label.setEnabled(stage >= 0) |
560 | 50 | self.ui.sign_in_label.setEnabled(stage >= 1) | 49 | self.ui.sign_in_label.setEnabled(stage >= 1) |
564 | 51 | self.ui.choose_services_label.setEnabled(stage >= 2) | 50 | self.ui.select_folders_label.setEnabled(stage >= 2) |
565 | 52 | self.ui.select_folders_label.setEnabled(stage >= 3) | 51 | self.ui.sync_label.setEnabled(stage >= 3) |
563 | 53 | self.ui.sync_label.setEnabled(stage >= 4) | ||
566 | 54 | self.set_stage_icon(self.ui.install_icon_label, self.install_stage) | 52 | self.set_stage_icon(self.ui.install_icon_label, self.install_stage) |
567 | 55 | self.set_stage_icon(self.ui.sign_icon_label, self.signin_stage) | 53 | self.set_stage_icon(self.ui.sign_icon_label, self.signin_stage) |
568 | 56 | self.set_stage_icon(self.ui.choose_icon_label, | ||
569 | 57 | self.choose_services_stage) | ||
570 | 58 | self.set_stage_icon(self.ui.folders_icon_label, | 54 | self.set_stage_icon(self.ui.folders_icon_label, |
571 | 59 | self.select_sync_folders_stage) | 55 | self.select_sync_folders_stage) |
572 | 60 | self.set_stage_icon(self.ui.sync_icon_label, self.sync_stage) | 56 | self.set_stage_icon(self.ui.sync_icon_label, self.sync_stage) |
573 | 61 | 57 | ||
574 | === modified file 'ubuntuone_installer/gui/qt/tests/test_gui.py' | |||
575 | --- ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-06 16:25:25 +0000 | |||
576 | +++ ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-07 11:54:54 +0000 | |||
577 | @@ -175,7 +175,7 @@ | |||
578 | 175 | self.ui.restart() | 175 | self.ui.restart() |
579 | 176 | self.ui.show() | 176 | self.ui.show() |
580 | 177 | self.addCleanup(self.ui.hide) | 177 | self.addCleanup(self.ui.hide) |
582 | 178 | gui.AreYouSure.result = 1 | 178 | gui.AreYouSure.result = 0 |
583 | 179 | self.patch(utils, "uninstall_application", self._set_called) | 179 | self.patch(utils, "uninstall_application", self._set_called) |
584 | 180 | self.ui.done(result=0) | 180 | self.ui.done(result=0) |
585 | 181 | self.assertTrue(self._called) | 181 | self.assertTrue(self._called) |
586 | @@ -186,7 +186,7 @@ | |||
587 | 186 | self.ui.restart() | 186 | self.ui.restart() |
588 | 187 | self.ui.show() | 187 | self.ui.show() |
589 | 188 | self.addCleanup(self.ui.hide) | 188 | self.addCleanup(self.ui.hide) |
591 | 189 | gui.AreYouSure.result = 1 | 189 | gui.AreYouSure.result = 0 |
592 | 190 | self.patch(utils, "uninstall_application", self._set_called) | 190 | self.patch(utils, "uninstall_application", self._set_called) |
593 | 191 | self.ui.done(result=0) | 191 | self.ui.done(result=0) |
594 | 192 | self.assertTrue(self._called) | 192 | self.assertTrue(self._called) |
595 | @@ -419,7 +419,7 @@ | |||
596 | 419 | 419 | ||
597 | 420 | def test_continue_cancels_cancel(self): | 420 | def test_continue_cancels_cancel(self): |
598 | 421 | """Clicking 'Continue' cancels cancellation.""" | 421 | """Clicking 'Continue' cancels cancellation.""" |
600 | 422 | gui.AreYouSure.result = 0 | 422 | gui.AreYouSure.result = 1 |
601 | 423 | self.patch(subprocess, "Popen", self._set_called) | 423 | self.patch(subprocess, "Popen", self._set_called) |
602 | 424 | self.ui.show() | 424 | self.ui.show() |
603 | 425 | self.addCleanup(self.ui.hide) | 425 | self.addCleanup(self.ui.hide) |
604 | 426 | 426 | ||
605 | === modified file 'ubuntuone_installer/gui/qt/tests/test_side_widget.py' | |||
606 | --- ubuntuone_installer/gui/qt/tests/test_side_widget.py 2011-07-14 03:55:39 +0000 | |||
607 | +++ ubuntuone_installer/gui/qt/tests/test_side_widget.py 2011-09-07 11:54:54 +0000 | |||
608 | @@ -43,8 +43,6 @@ | |||
609 | 43 | self.assertEqual( | 43 | self.assertEqual( |
610 | 44 | self.ui.ui.sign_in_label.isEnabled(), False) | 44 | self.ui.ui.sign_in_label.isEnabled(), False) |
611 | 45 | self.assertEqual( | 45 | self.assertEqual( |
612 | 46 | self.ui.ui.choose_services_label.isEnabled(), False) | ||
613 | 47 | self.assertEqual( | ||
614 | 48 | self.ui.ui.select_folders_label.isEnabled(), False) | 46 | self.ui.ui.select_folders_label.isEnabled(), False) |
615 | 49 | self.assertEqual( | 47 | self.assertEqual( |
616 | 50 | self.ui.ui.sync_label.isEnabled(), False) | 48 | self.ui.ui.sync_label.isEnabled(), False) |
617 | @@ -58,8 +56,6 @@ | |||
618 | 58 | self.assertEqual( | 56 | self.assertEqual( |
619 | 59 | self.ui.ui.sign_in_label.isEnabled(), True) | 57 | self.ui.ui.sign_in_label.isEnabled(), True) |
620 | 60 | self.assertEqual( | 58 | self.assertEqual( |
621 | 61 | self.ui.ui.choose_services_label.isEnabled(), False) | ||
622 | 62 | self.assertEqual( | ||
623 | 63 | self.ui.ui.select_folders_label.isEnabled(), False) | 59 | self.ui.ui.select_folders_label.isEnabled(), False) |
624 | 64 | self.assertEqual( | 60 | self.assertEqual( |
625 | 65 | self.ui.ui.sync_label.isEnabled(), False) | 61 | self.ui.ui.sync_label.isEnabled(), False) |
626 | @@ -73,9 +69,7 @@ | |||
627 | 73 | self.assertEqual( | 69 | self.assertEqual( |
628 | 74 | self.ui.ui.sign_in_label.isEnabled(), True) | 70 | self.ui.ui.sign_in_label.isEnabled(), True) |
629 | 75 | self.assertEqual( | 71 | self.assertEqual( |
633 | 76 | self.ui.ui.choose_services_label.isEnabled(), True) | 72 | self.ui.ui.select_folders_label.isEnabled(), True) |
631 | 77 | self.assertEqual( | ||
632 | 78 | self.ui.ui.select_folders_label.isEnabled(), False) | ||
634 | 79 | self.assertEqual( | 73 | self.assertEqual( |
635 | 80 | self.ui.ui.sync_label.isEnabled(), False) | 74 | self.ui.ui.sync_label.isEnabled(), False) |
636 | 81 | self.check_state_pixmap(2) | 75 | self.check_state_pixmap(2) |
637 | @@ -88,28 +82,11 @@ | |||
638 | 88 | self.assertEqual( | 82 | self.assertEqual( |
639 | 89 | self.ui.ui.sign_in_label.isEnabled(), True) | 83 | self.ui.ui.sign_in_label.isEnabled(), True) |
640 | 90 | self.assertEqual( | 84 | self.assertEqual( |
641 | 91 | self.ui.ui.choose_services_label.isEnabled(), True) | ||
642 | 92 | self.assertEqual( | ||
643 | 93 | self.ui.ui.select_folders_label.isEnabled(), True) | 85 | self.ui.ui.select_folders_label.isEnabled(), True) |
644 | 94 | self.assertEqual( | 86 | self.assertEqual( |
646 | 95 | self.ui.ui.sync_label.isEnabled(), False) | 87 | self.ui.ui.sync_label.isEnabled(), True) |
647 | 96 | self.check_state_pixmap(3) | 88 | self.check_state_pixmap(3) |
648 | 97 | 89 | ||
649 | 98 | def test_stage_4(self): | ||
650 | 99 | """Check that each stage in the widget enables the right labels.""" | ||
651 | 100 | self.ui.set_stage(4) | ||
652 | 101 | self.assertEqual( | ||
653 | 102 | self.ui.ui.install_label.isEnabled(), True) | ||
654 | 103 | self.assertEqual( | ||
655 | 104 | self.ui.ui.sign_in_label.isEnabled(), True) | ||
656 | 105 | self.assertEqual( | ||
657 | 106 | self.ui.ui.choose_services_label.isEnabled(), True) | ||
658 | 107 | self.assertEqual( | ||
659 | 108 | self.ui.ui.select_folders_label.isEnabled(), True) | ||
660 | 109 | self.assertEqual( | ||
661 | 110 | self.ui.ui.sync_label.isEnabled(), True) | ||
662 | 111 | self.check_state_pixmap(4) | ||
663 | 112 | |||
664 | 113 | def get_pixmap_data(self, pixmap): | 90 | def get_pixmap_data(self, pixmap): |
665 | 114 | """Get the raw data of a QPixmap.""" | 91 | """Get the raw data of a QPixmap.""" |
666 | 115 | byte_array = QtCore.QByteArray() | 92 | byte_array = QtCore.QByteArray() |
667 | @@ -128,7 +105,6 @@ | |||
668 | 128 | 105 | ||
669 | 129 | def check_state_pixmap(self, stage): | 106 | def check_state_pixmap(self, stage): |
670 | 130 | """Check if each label has the proper pixmap depending on the state.""" | 107 | """Check if each label has the proper pixmap depending on the state.""" |
671 | 131 | print stage | ||
672 | 132 | active_pixmap = QtGui.QPixmap(":/progress_arrow_orange.png") | 108 | active_pixmap = QtGui.QPixmap(":/progress_arrow_orange.png") |
673 | 133 | no_active_pixmap = QtGui.QPixmap(":/progress_arrow_grey.png") | 109 | no_active_pixmap = QtGui.QPixmap(":/progress_arrow_grey.png") |
674 | 134 | complete_pixmap = QtGui.QPixmap(":/progress_tick.png") | 110 | complete_pixmap = QtGui.QPixmap(":/progress_tick.png") |
675 | @@ -137,19 +113,18 @@ | |||
676 | 137 | labels = ( | 113 | labels = ( |
677 | 138 | self.ui.ui.install_icon_label, | 114 | self.ui.ui.install_icon_label, |
678 | 139 | self.ui.ui.sign_icon_label, | 115 | self.ui.ui.sign_icon_label, |
679 | 140 | self.ui.ui.choose_icon_label, | ||
680 | 141 | self.ui.ui.folders_icon_label, | 116 | self.ui.ui.folders_icon_label, |
681 | 142 | self.ui.ui.sync_icon_label) | 117 | self.ui.ui.sync_icon_label) |
682 | 143 | 118 | ||
683 | 144 | for item in labels[:stage]: | 119 | for item in labels[:stage]: |
684 | 145 | self.assertEqualPixmaps(complete_pixmap, item.pixmap()) | 120 | self.assertEqualPixmaps(complete_pixmap, item.pixmap()) |
685 | 146 | 121 | ||
687 | 147 | if stage != 4: | 122 | if stage != 3: |
688 | 148 | self.assertEqualPixmaps(active_pixmap, labels[stage].pixmap()) | 123 | self.assertEqualPixmaps(active_pixmap, labels[stage].pixmap()) |
689 | 149 | else: | 124 | else: |
691 | 150 | self.assertEqualPixmaps(sync_active_pixmap, labels[4].pixmap()) | 125 | self.assertEqualPixmaps(sync_active_pixmap, labels[3].pixmap()) |
692 | 151 | 126 | ||
694 | 152 | if stage < 4: | 127 | if stage < 3: |
695 | 153 | for item in labels[stage + 1:len(labels) - 1]: | 128 | for item in labels[stage + 1:len(labels) - 1]: |
696 | 154 | self.assertEqualPixmaps(no_active_pixmap, item.pixmap()) | 129 | self.assertEqualPixmaps(no_active_pixmap, item.pixmap()) |
698 | 155 | self.assertEqualPixmaps(sync_no_active_pixmap, labels[4].pixmap()) | 130 | self.assertEqualPixmaps(sync_no_active_pixmap, labels[3].pixmap()) |
+1, ran tests on both platforms, looked at the running program's UI, everything looks good.