From 90480f30ce1d81ecd148b18b05f9dd13b2e273ec Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 24 Oct 2015 12:37:12 -0700 Subject: [PATCH] Removed active and _heading properties They were causing variable scoping conflicts. This in turn caused the widget to not update. Active property is not needed since the handling of active/inactive vehicle is handled outside of the control --- src/FlightMap/Widgets/QGCCompassWidget.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FlightMap/Widgets/QGCCompassWidget.qml b/src/FlightMap/Widgets/QGCCompassWidget.qml index 90f55cb7b..72f2f3882 100644 --- a/src/FlightMap/Widgets/QGCCompassWidget.qml +++ b/src/FlightMap/Widgets/QGCCompassWidget.qml @@ -34,15 +34,12 @@ import QGroundControl.ScreenTools 1.0 QGCMovableItem { id: root - property bool active: false ///< true: actively connected to data provider, false: show inactive control property real heading: _defaultHeading property real size: ScreenTools.defaultFontPixelSize * (10) property int _fontSize: ScreenTools.defaultFontPixelSize readonly property real _defaultHeading: 0 - property real _heading: active ? heading : _defaultHeading - width: size height: size Rectangle { @@ -60,7 +57,7 @@ QGCMovableItem { transform: Rotation { origin.x: pointer.width / 2 origin.y: pointer.height / 2 - angle: _heading + angle: heading } } Image { -- 2.22.0