QML UI: draw edit/back button next to context menu button if it's shown

Without this they were all anchored to parent.right and would be rendered
on top of each other.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-09 06:33:16 -08:00
parent 0f6b8a8f6f
commit 0cc9ad0619

View file

@ -83,7 +83,7 @@ Rectangle {
}
Item {
id: editButton
anchors.right: parent.right
anchors.right: contextDrawer.enabled ? contextMenu.left : parent.right
anchors.top: parent.top
Layout.preferredHeight: editButtonIcon.height
width: editButtonIcon.width
@ -117,7 +117,7 @@ Rectangle {
}
Item {
id: backButton
anchors.right: parent.right
anchors.right: contextDrawer.enabled ? contextMenu.left : parent.right
anchors.top: parent.top
Layout.preferredHeight: backButtonIcon.height
width: backButtonIcon.width