summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2018-11-01 15:26:07 +0100
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2018-11-05 07:33:35 +0000
commit91c79541e675f7ddb72865eef78c09ddd17065c5 (patch)
treeeca3b2a8c999281e4ba98d7172c5113ce72b848a
parent3f1e26264634057147dd77fbf427c1777b86ba29 (diff)
SensorTag: Fix qml warning
Prefer Layout properties instead of anchors. Change-Id: Ic5d958c1e9cb1060b81eb85003db1d198ee6fd4a Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r--tradeshow/iot-sensortag/resources/watch/MainWatch.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tradeshow/iot-sensortag/resources/watch/MainWatch.qml b/tradeshow/iot-sensortag/resources/watch/MainWatch.qml
index 5a500a2..89cd8d6 100644
--- a/tradeshow/iot-sensortag/resources/watch/MainWatch.qml
+++ b/tradeshow/iot-sensortag/resources/watch/MainWatch.qml
@@ -253,21 +253,21 @@ Item {
width: parent.width
Layout.maximumWidth: parent.width - 20
Layout.maximumHeight: 100
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignHCenter
}
Text {
id: qtLinkLabel
color: "white"
text: "Visit us at http://qt.io"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignHCenter
font.pixelSize: Style.indicatorTitleSize
}
Text {
color: "white"
text: "qt.io/demos/IoTScale"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignHCenter
font.pixelSize: Style.indicatorTitleSize
}
}