Merge lp:~larsu/ubuntu-ui-toolkit/custom-icon-lookup into lp:ubuntu-ui-toolkit
Status: | Superseded |
---|---|
Proposed branch: | lp:~larsu/ubuntu-ui-toolkit/custom-icon-lookup |
Merge into: | lp:ubuntu-ui-toolkit |
Diff against target: |
404 lines (+253/-64) (has conflicts) 7 files modified
debian/control (+1/-1) modules/Ubuntu/Components/Icon10.qml (+8/-36) modules/Ubuntu/Components/plugin/plugin.pro (+4/-0) modules/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+224/-25) modules/Ubuntu/Components/plugin/unitythemeiconprovider.h (+3/-0) tests/unit_x11/tst_components/tst_components.cpp (+12/-1) tests/unit_x11/tst_components/tst_icon.qml (+1/-1) Text conflict in modules/Ubuntu/Components/plugin/plugin.pro |
To merge this branch: | bzr merge lp:~larsu/ubuntu-ui-toolkit/custom-icon-lookup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Tim Peeters | Needs Resubmitting | ||
Albert Astals Cid (community) | Needs Information | ||
Review via email: mp+232115@code.launchpad.net |
Commit message
unitythemeiconp
Previously, UnityThemeIconP
It also now properly support rectangular icons and always returns an icon with the requested size (adjusted for preserving the aspect ratio).
Description of the change
unitythemeiconp
Unmerged revisions
- 1233. By Lars Karlitski
-
unitythemeiconp
rovider: typedef shared IconTheme pointer - 1232. By Lars Karlitski
-
Icon10: give source an empty fallback
- 1231. By Lars Karlitski
-
unitythemeiconp
rovider: use QStandardLocation - 1230. By Lars Karlitski
-
unitythemeiconp
rovider: also return the largest icon when requested size is 0 There's a test and a bug about it. Seems to be expected behavior.
- 1229. By Lars Karlitski
-
unitythemeiconp
rovider: support size == -1 Qt sets requestedSize to -1 if no size has been specified. Return the largest
available icon in that case. - 1228. By Lars Karlitski
-
unitythemeiconp
rovider: don't load icons that might not be used Only load the icon that has the best matching size, not the ones encountered
while searching for it. - 1227. By Lars Karlitski
-
tst_components: set XDG_DATA_DIRS so that icons are found
- 1226. By Lars Karlitski
-
unitythemeiconp
rovider: use qgetenv instead of getenv - 1225. By Lars Karlitski
-
Icon: remove unnecessary sizing workaround
UnityThemeIconP
rovider behaves correctly now for small icon sizes. This patch also makes sure that icons are always drawn with the correct aspect
ratio. Consumers only need to supply a height, whereas they needed to set both
width and height.In the process, the update() function was removed and is thus not called when
the width and height of the Icon changes. This causes no regressions, as Qt
doesn't reload icons with the same url anyway. - 1224. By Lars Karlitski
-
unitythemeiconp
rovider: manually load icons Previously, UnityThemeIconP
rovider used QIcon::fromTheme() to lookup and load
icons. That function uses fdo's default icon lookup algorithm: it looks at the
current theme and all parent themes for each icon in turn. We'd prefer a
breadth-first search, where all icon names are looked up in the current theme
before falling back to the parent themes (see lp: #1324184). This patch
implements fdo's FindBestIcon() algorithm, which behaves like that.It also now properly support rectangular icons and always returns an icon with
the requested size (adjusted for preserving the aspect ratio).
FAILED: Continuous integration, rev:1077 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- ci/2134/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- utopic- touch/4002/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- utopic/ 3080/console jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- utopic- amd64-ci/ 80/console jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- utopic- armhf-ci/ 80 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- utopic- armhf-ci/ 80/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- mako/3844/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/5253 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/5253/ artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 12050 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- amd64/3365/ console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- ui-toolkit- ci/2134/ rebuild
http://