From d7b18c7841bb7104d0c20da16064aea82cb7145c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kari=20Hautam=C3=A4ki?= Date: Fri, 24 Feb 2017 15:19:06 +0200 Subject: iot-sensortag: RotationAnimator in RotationPage In RotationPage, replace RotationAnimation with RotationAnimator Change-Id: I7344a836319213a3a62f766ec4731af3c800fb5b Reviewed-by: Titta Heikkala --- tradeshow/iot-sensortag/resources/base/RotationPage.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tradeshow') diff --git a/tradeshow/iot-sensortag/resources/base/RotationPage.qml b/tradeshow/iot-sensortag/resources/base/RotationPage.qml index 08976e4..347a886 100644 --- a/tradeshow/iot-sensortag/resources/base/RotationPage.qml +++ b/tradeshow/iot-sensortag/resources/base/RotationPage.qml @@ -47,7 +47,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -import QtQuick 2.6 +import QtQuick 2.7 import SensorTag.DataProvider 1.0 Item { @@ -69,10 +69,10 @@ Item { source: pathPrefix + "Gyro/gyro_ring3.png" rotation: sensor ? sensor.rotationX : 0 Behavior on rotation { - RotationAnimation { + RotationAnimator { easing.type: Easing.Linear duration: rotationUpdateInterval - direction: RotationAnimation.Shortest + direction: RotationAnimator.Shortest } } } @@ -82,10 +82,10 @@ Item { source: pathPrefix + "Gyro/gyro_ring2.png" rotation: sensor ? sensor.rotationY : 0 Behavior on rotation { - RotationAnimation { + RotationAnimator { easing.type: Easing.Linear duration: rotationUpdateInterval - direction: RotationAnimation.Shortest + direction: RotationAnimator.Shortest } } } @@ -95,10 +95,10 @@ Item { source: pathPrefix + "Gyro/gyro_ring1.png" rotation: sensor ? sensor.rotationZ : 0 Behavior on rotation { - RotationAnimation { + RotationAnimator { easing.type: Easing.Linear duration: rotationUpdateInterval - direction: RotationAnimation.Shortest + direction: RotationAnimator.Shortest } } } -- cgit v1.2.3