I'd prefer to use the anchors properties instead of assigning the width, that is instead of having:
anchors.horizontalCenter: parent.horizontalCenter width: parent.width - units.gu(4)
have
anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: units.gu(2) anchors.rightMargin: anchors.leftMargin
which makes it more declarative, but it's just my preference.
« Back to merge proposal
I'd prefer to use the anchors properties instead of assigning the width, that is instead of having:
anchors. horizontalCente r: parent. horizontalCente r
width: parent.width - units.gu(4)
have
anchors.left: parent.left leftMargin: units.gu(2) rightMargin: anchors.leftMargin
anchors.right: parent.right
anchors.
anchors.
which makes it more declarative, but it's just my preference.