From 91c79541e675f7ddb72865eef78c09ddd17065c5 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Thu, 1 Nov 2018 15:26:07 +0100 Subject: SensorTag: Fix qml warning Prefer Layout properties instead of anchors. Change-Id: Ic5d958c1e9cb1060b81eb85003db1d198ee6fd4a Reviewed-by: Oliver Wolff --- tradeshow/iot-sensortag/resources/watch/MainWatch.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tradeshow') 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 } } -- cgit v1.2.3