mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 06:23:24 +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 {
|
Item {
|
||||||
id: editButton
|
id: editButton
|
||||||
anchors.right: parent.right
|
anchors.right: contextDrawer.enabled ? contextMenu.left : parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
Layout.preferredHeight: editButtonIcon.height
|
Layout.preferredHeight: editButtonIcon.height
|
||||||
width: editButtonIcon.width
|
width: editButtonIcon.width
|
||||||
|
@ -117,7 +117,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
id: backButton
|
id: backButton
|
||||||
anchors.right: parent.right
|
anchors.right: contextDrawer.enabled ? contextMenu.left : parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
Layout.preferredHeight: backButtonIcon.height
|
Layout.preferredHeight: backButtonIcon.height
|
||||||
width: backButtonIcon.width
|
width: backButtonIcon.width
|
||||||
|
|
Loading…
Add table
Reference in a new issue