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
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 {
......
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