SlotsLayout padding grouped property needs to assigned member-by-member, can't be assigned as a whole

Bug #1631447 reported by Marco Trevisan (Treviño)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Wishlist
Andrea Bernabei

Bug Description

ubuntu-ui-toolkit/staging branch, r2139

At the moment to assign paddings of a SlotsLayout you can only do:
SlotsLayout {
  id: myLayout
  padding.top: units.gu(15)
  padding.bottom: units.gu(5)
}

Assigning the whole padding at once is not possible:
SlotsLayout {
  padding: myLayout.padding
}
as that returns an error:

Slots.qml: Invalid property assignment: "padding" is a read-only property
So to achieve this we need to manually assign the subvalues.

It would be nice to do it all at once.

Revision history for this message
Andrea Bernabei (faenil) wrote :

Thanks Marco!
That makes sense, I'll have a look at that next week!

summary: - SlotsLayout paddings can't be bound to another layout values
+ SlotsLayout padding grouped property needs to assigned member-by-member,
+ can't be assigned as a whole
description: updated
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.