aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/CloudCredentials.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-25 16:41:29 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-26 03:56:44 +0800
commitf998b59900c0d66441fa9877930754daf084aea9 (patch)
tree332025d34ed62fe9d95da6b4b9ca6c065b505def /mobile-widgets/qml/CloudCredentials.qml
parentcda1961d80878add50baf34b8c4e7be0ce271403 (diff)
downloadsubsurface-f998b59900c0d66441fa9877930754daf084aea9.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index dd03c4d69..f148e9922 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -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