Layouts adjust the size of the children by changing the width and height
replacing our bindings.
implicitWidth is the correct thing to use for layout items
BUG: 360321
broulik |
Plasma |
Layouts adjust the size of the children by changing the width and height
replacing our bindings.
implicitWidth is the correct thing to use for layout items
BUG: 360321
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I just noticed I had an uncommited change which tried to solve the same thing:
- width: units.iconSizes.smallMedium - height: width + Layout.preferredWidth: units.iconSizes.smallMedium + Layout.fillHeight: true
But yours is clearly better.