From b177e9bd046ce79401931c29a2eb136678047d60 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Sun, 21 Jul 2019 21:22:35 +0200 Subject: Make references to the global properties rotation and calibration explicit to fix the app which was broken --- main.qml | 8 ++++---- 1 file 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 } } -- cgit v1.2.3-70-g09d2