summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/resources/base/GyroChart.qml
diff options
context:
space:
mode:
authorTitta Heikkala <titta.heikkala@qt.io>2017-02-09 12:04:11 +0200
committerKari Hautamäki <kari.hautamaki@qt.io>2017-02-09 12:53:22 +0000
commit4126977c5a683475335df289c088c11439afa548 (patch)
tree5bdd37a28b3eaa1539e07d7eb064d67ef997ad9d /tradeshow/iot-sensortag/resources/base/GyroChart.qml
parent5a3616a091224bed3a96f8442ed2e30d08a7493d (diff)
iot-sensortag: Make central gyro visible always and calibratable
Central gyro page is visible always. It is also possible to recalibrate the gyro sensor by clicking the GyroChart. Change-Id: I9805411e03d49571b9e392bcd77a9469aef153a0 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/resources/base/GyroChart.qml')
-rw-r--r--tradeshow/iot-sensortag/resources/base/GyroChart.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/resources/base/GyroChart.qml b/tradeshow/iot-sensortag/resources/base/GyroChart.qml
index e14bc62..3faf879 100644
--- a/tradeshow/iot-sensortag/resources/base/GyroChart.qml
+++ b/tradeshow/iot-sensortag/resources/base/GyroChart.qml
@@ -70,6 +70,11 @@ BaseChart {
}
}
+ onClicked: {
+ if (sensor)
+ sensor.recalibrate();
+ }
+
title: qsTr("Gyroscope")
rightSide: true