diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-09 06:33:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-09 06:34:14 -0800 |
commit | 0cc9ad0619760c003575935f5a26d4bede5bbe7e (patch) | |
tree | c02632650ccc40367a988ed384848214caee74aa | |
parent | 0f6b8a8f6f9b88a11dd1f4169bedde722479433c (diff) | |
download | subsurface-0cc9ad0619760c003575935f5a26d4bede5bbe7e.tar.gz |
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>
-rw-r--r-- | qt-mobile/qml/TopBar.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |