From 0cc9ad0619760c003575935f5a26d4bede5bbe7e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 9 Feb 2016 06:33:16 -0800 Subject: 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 --- qt-mobile/qml/TopBar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml/TopBar.qml') diff --git a/qt-mobile/qml/TopBar.qml b/qt-mobile/qml/TopBar.qml index 338b78f87..a2bab331e 100644 --- a/qt-mobile/qml/TopBar.qml +++ b/qt-mobile/qml/TopBar.qml @@ -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 -- cgit v1.2.3-70-g09d2