summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Hautamäki <kari.hautamaki@qt.io>2017-02-24 15:19:06 +0200
committerTitta Heikkala <titta.heikkala@qt.io>2017-02-27 05:52:58 +0000
commitd7b18c7841bb7104d0c20da16064aea82cb7145c (patch)
tree3bea29d9ee8587314057c6427b5aacc6677756ce
parentf8837693091580d1076594d240c46b87a958ef29 (diff)
iot-sensortag: RotationAnimator in RotationPage
In RotationPage, replace RotationAnimation with RotationAnimator Change-Id: I7344a836319213a3a62f766ec4731af3c800fb5b Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
-rw-r--r--tradeshow/iot-sensortag/resources/base/RotationPage.qml14
1 files changed, 7 insertions, 7 deletions
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
}
}
}