mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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:
parent
0f6b8a8f6f
commit
0cc9ad0619
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue