[ubuntu-ui-toolkit] Image.sourceSize does not work for images using the @px notation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Florian Boucault | ||
manhattan |
Fix Released
|
High
|
Florian Boucault | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Setting sourceSize for images does not work when the image filename uses the @px notation.
Also, the memory usage differs significantly depending if the @px notation is used or not.
Here's a code snipped that shows the issue. the first one is displayed in full resolution while only the second one is scaled down to 2x2 pixels.
<snip>
import QtQuick 2.0
import Ubuntu.Components 0.1
Row {
width: 1000
height: 500
Image {
width: 500
height: 500
source: "demo-assets/
sourceSize.
sourceSize.
}
Image {
width: 500
height: 500
source: "demo-assets/
sourceSize.
sourceSize.
}
}
</snip>
Related branches
- Zsombor Egri: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 94 lines (+56/-6)2 files modifiedmodules/Ubuntu/Components/plugin/ucscalingimageprovider.cpp (+17/-6)
tests/unit/tst_scaling_image_provider/tst_scaling_image_provider.cpp (+39/-0)
Changed in manhattan: | |
importance: | Undecided → High |
description: | updated |
Changed in manhattan: | |
status: | New → Triaged |
assignee: | nobody → Tim Peeters (tpeeters) |
information type: | Proprietary → Private |
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → High |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in manhattan: | |
assignee: | Tim Peeters (tpeeters) → nobody |
Changed in ubuntu-ui-toolkit: | |
assignee: | Tim Peeters (tpeeters) → Florian Boucault (fboucault) |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Critical |
information type: | Private → Public |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Changed in manhattan: | |
status: | In Progress → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Fix Committed |
Fix committed into lp:ubuntu-ui-toolkit at revision 435, scheduled for release in ubuntu-ui-toolkit, milestone Unknown