aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Revest <revestflo@gmail.com>2019-07-21 21:22:35 +0200
committerFlorent Revest <revestflo@gmail.com>2019-07-21 21:22:35 +0200
commitb177e9bd046ce79401931c29a2eb136678047d60 (patch)
tree7e7ac54826c791053c1d076ac116138bbc678426
parent677b91d5d86fd1aa2e2cc93e419f5235c58e6e50 (diff)
Make references to the global properties rotation and calibration explicit to fix the app which was broken
-rw-r--r--main.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.qml b/main.qml
index 62d7ecb..f6c171c 100644
--- a/main.qml
+++ b/main.qml
@@ -32,8 +32,8 @@ Application {
Compass {
active: true
onReadingChanged: {
- rotation = reading.azimuth;
- calibration = reading.calibrationLevel;
+ app.rotation = reading.azimuth;
+ app.calibration = reading.calibrationLevel;
}
}
@@ -42,7 +42,7 @@ Application {
anchors.margins: Dims.l(15)
fillMode: Image.PreserveAspectFit
source: "qrc:///compass.svg"
- rotation: -rotation
+ rotation: -app.rotation
height: 200;
sourceSize.width: width
sourceSize.height: height
@@ -53,6 +53,6 @@ Application {
anchors.bottom: parent.bottom
anchors.bottomMargin: Dims.l(7)
font.pixelSize: Dims.l(5)
- text: rotation + " °N Calibrated: " + calibration
+ text: app.rotation + " °N Calibrated: " + app.calibration
}
}