diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-11-01 15:26:07 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-11-05 07:33:35 +0000 |
commit | 91c79541e675f7ddb72865eef78c09ddd17065c5 (patch) | |
tree | eca3b2a8c999281e4ba98d7172c5113ce72b848a /tradeshow/iot-sensortag/resources/watch/MainWatch.qml | |
parent | 3f1e26264634057147dd77fbf427c1777b86ba29 (diff) |
SensorTag: Fix qml warning
Prefer Layout properties instead of anchors.
Change-Id: Ic5d958c1e9cb1060b81eb85003db1d198ee6fd4a
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/resources/watch/MainWatch.qml')
-rw-r--r-- | tradeshow/iot-sensortag/resources/watch/MainWatch.qml | 6 |
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 } } |