mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: don't use anchors within Layouts
Qt 5.11 adds useful warnings when code attempts to use anchors within Layouts and even tells you how to fix things. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cda1961d80
commit
f998b59900
2 changed files with 10 additions and 24 deletions
|
|
@ -97,9 +97,8 @@ Item {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: Kirigami.Units.smallSpacing
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: Kirigami.Units.smallSpacing
|
||||
spacing: Kirigami.Units.smallSpacing
|
||||
visible: rootItem.showPin
|
||||
SsrfButton {
|
||||
|
|
@ -124,9 +123,8 @@ Item {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: Kirigami.Units.smallSpacing
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: Kirigami.Units.smallSpacing
|
||||
spacing: Kirigami.Units.smallSpacing
|
||||
visible: !rootItem.showPin
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue