[UbuntuShape] Images assigned by a variable don't get handled properly

Bug #1189884 reported by Iain Lane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Invalid
High
Loïc Molinari

Bug Description

Run the attached example. The image on the right is assigned via an intermediate variable. It doesn't get rounded corners.

I want to be able to swap images in by setting the image property, but when I do the image is broken.

Tags: shape
Revision history for this message
Iain Lane (laney) wrote :
Revision history for this message
Iain Lane (laney) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Actually it looks like my adding of height and width mask a problem there too. If you remove them then the size goes to the size of the source image. So it seems like the separate Image isn't handled properly at all.

Iain Lane (laney)
summary: - [UbuntuShape] Images assigned by a variable don't get rounded corners
+ [UbuntuShape] Images assigned by a variable don't get handled properly
Changed in ubuntu-ui-toolkit:
assignee: nobody → Loïc Molinari (loic.molinari)
importance: Undecided → High
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
tags: added: shape
Revision history for this message
Loïc Molinari (loic.molinari) wrote :

This is an expected behavior of QML, the second UbuntuShape ("notfine") is correctly renderer, it's just hidden by the Image ("img") that's renderered on top of it. If you want to assign an image without using the inline syntax, make sure you set the image's visible property to false!

Changed in ubuntu-ui-toolkit:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.