Merge lp:~aacid/ubuntu-ui-toolkit/nonsquareicons into lp:ubuntu-ui-toolkit/staging
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Zsombor Egri on 2015-02-19 | ||||
| Approved revision: | 1418 | ||||
| Merged at revision: | 1414 | ||||
| Proposed branch: | lp:~aacid/ubuntu-ui-toolkit/nonsquareicons | ||||
| Merge into: | lp:ubuntu-ui-toolkit/staging | ||||
| Diff against target: |
271 lines (+142/-15) 7 files modified
modules/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+17/-14) modules/Ubuntu/Components/plugin/unitythemeiconprovider.h (+1/-1) tests/unit_x11/tst_iconprovider/icons/mockTheme/actions/scalable/battery-100-charging.svg (+25/-0) tests/unit_x11/tst_iconprovider/icons/mockTheme/index.theme (+17/-0) tests/unit_x11/tst_iconprovider/tst_iconprovider.cpp (+76/-0) tests/unit_x11/tst_iconprovider/tst_iconprovider.pro (+5/-0) tests/unit_x11/unit_x11.pro (+1/-0) |
||||
| To merge this branch: | bzr merge lp:~aacid/ubuntu-ui-toolkit/nonsquareicons | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-02-19 | |
| Lars Karlitski (community) | Approve on 2015-02-18 | ||
| Zsombor Egri (community) | 2015-02-18 | Approve on 2015-02-18 | |
| Sebastien Bacher (community) | runtime testing | Approve on 2015-02-18 | |
|
Review via email:
|
|||
Commit Message
Fix infinite icon size grow when asked for a non square icon
Without this patch we could end up in loops like
requested icon "battery-
returned QSize(37, 24)
requested icon "battery-
returned QSize(57, 37)
requested icon "battery-
returned QSize(88, 57)
requested icon "battery-
returned QSize(88, 57)
| Albert Astals Cid (aacid) wrote : | # |
- 1411. By Albert Astals Cid on 2015-02-18
-
Add tests for the icon provider
They are bit dependent on the suru icon theme so may need a bit of adjusting as time goes by
| Albert Astals Cid (aacid) wrote : | # |
The diff seems very big but that's just because i moved the declaration of the icon theme class to the header in r1411 :/
- 1412. By Albert Astals Cid on 2015-02-18
-
Update
- 1413. By Albert Astals Cid on 2015-02-18
-
Get my own mockTheme for more stable testin
- 1414. By Albert Astals Cid on 2015-02-18
-
Revert unneeded changes
- 1415. By Albert Astals Cid on 2015-02-18
-
We don't need this either
- 1416. By Albert Astals Cid on 2015-02-18
-
smaller diff against original code
- 1417. By Albert Astals Cid on 2015-02-18
-
my mock inherits noone
| Albert Astals Cid (aacid) wrote : | # |
Without the changes in the cpp code these are the tests that fail
tst_iconprovider: FAIL! : tst_IconProvide
tst_
tst_
tst_
i.e. asking for a 16x-1 icon returns a 24x16 icon
tst_iconprovider: FAIL! : tst_IconProvide
tst_
tst_
tst_
i.e. asking for a 16x0 icon returns a 24x16 icon
tst_iconprovider: FAIL! : tst_IconProvide
tst_
tst_
tst_
i.e. asking for a 24x16 icon returns a 37x24 icon
tst_iconprovider: FAIL! : tst_IconProvide
tst_
tst_
tst_
i.e. asking for a 37x24 icon returns a 57x27 icon
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1410
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Sebastien Bacher (seb128) wrote : | # |
The changes work for me, my unity8 desktop session starts again with that update
| Zsombor Egri (zsombi) wrote : | # |
Looks good, lets wait till we get the staging fixed with 5.4 (i.e. binding loops in Picker)
| Lars Karlitski (larsu) wrote : | # |
I can't reproduce the infinite loop. That isn't an issue in with the provider, though, as it sets its outgoing size correctly.
However, I agree that returning e.g. a pixmap sized (57, 37) when requesting (37, 24) is obviously bogus. Thanks for the patch!
Note that you still return values greater than requested in some cases. Not sure if that lead to the orginal problem.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1417
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Agreed, the Qt::KeepAspectR
Zsombor, do you want me to explore fixing that too?
- 1418. By Albert Astals Cid on 2015-02-19
-
Merge staging
| Zsombor Egri (zsombi) wrote : | # |
> Agreed, the Qt::KeepAspectR
> QSize(37, 24) when asking one of QSize(24, 24) and i'm with you that's a
> questionable choice.
>
> Zsombor, do you want me to explore fixing that too?
If you have time to check it, I wouldn't mind, more, I would be very thankful!
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1418
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

I'm also working on a unit test, since i couldn't find any