Commit 90480f30 authored by Don Gagne's avatar Don Gagne

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
parent a5597700
...@@ -34,15 +34,12 @@ import QGroundControl.ScreenTools 1.0 ...@@ -34,15 +34,12 @@ import QGroundControl.ScreenTools 1.0
QGCMovableItem { QGCMovableItem {
id: root id: root
property bool active: false ///< true: actively connected to data provider, false: show inactive control
property real heading: _defaultHeading property real heading: _defaultHeading
property real size: ScreenTools.defaultFontPixelSize * (10) property real size: ScreenTools.defaultFontPixelSize * (10)
property int _fontSize: ScreenTools.defaultFontPixelSize property int _fontSize: ScreenTools.defaultFontPixelSize
readonly property real _defaultHeading: 0 readonly property real _defaultHeading: 0
property real _heading: active ? heading : _defaultHeading
width: size width: size
height: size height: size
Rectangle { Rectangle {
...@@ -60,7 +57,7 @@ QGCMovableItem { ...@@ -60,7 +57,7 @@ QGCMovableItem {
transform: Rotation { transform: Rotation {
origin.x: pointer.width / 2 origin.x: pointer.width / 2
origin.y: pointer.height / 2 origin.y: pointer.height / 2
angle: _heading angle: heading
} }
} }
Image { Image {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment