diff options
author | Florent Revest <revestflo@gmail.com> | 2019-07-21 21:22:35 +0200 |
---|---|---|
committer | Florent Revest <revestflo@gmail.com> | 2019-07-21 21:22:35 +0200 |
commit | b177e9bd046ce79401931c29a2eb136678047d60 (patch) | |
tree | 7e7ac54826c791053c1d076ac116138bbc678426 | |
parent | 677b91d5d86fd1aa2e2cc93e419f5235c58e6e50 (diff) |
Make references to the global properties rotation and calibration explicit to fix the app which was broken
Diffstat (limited to '')
-rw-r--r-- | main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } } |