Browse Source

Fix vehicle map item opacity

QGC4.4
Hunter N. Morgan 4 years ago committed by Don Gagne
parent
commit
29d7998872
  1. 3
      src/FlightMap/MapItems/VehicleMapItem.qml

3
src/FlightMap/MapItems/VehicleMapItem.qml

@ -31,6 +31,7 @@ MapQuickItem {
anchorPoint.y: vehicleItem.height / 2 anchorPoint.y: vehicleItem.height / 2
visible: coordinate.isValid visible: coordinate.isValid
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
property bool _adsbVehicle: vehicle ? false : true property bool _adsbVehicle: vehicle ? false : true
property real _uavSize: ScreenTools.defaultFontPixelHeight * 5 property real _uavSize: ScreenTools.defaultFontPixelHeight * 5
property real _adsbSize: ScreenTools.defaultFontPixelHeight * 2.5 property real _adsbSize: ScreenTools.defaultFontPixelHeight * 2.5
@ -41,7 +42,7 @@ MapQuickItem {
id: vehicleItem id: vehicleItem
width: vehicleIcon.width width: vehicleIcon.width
height: vehicleIcon.height height: vehicleIcon.height
opacity: vehicle ? (vehicle.active ? 1.0 : 0.5) : 1.0 opacity: (vehicle && _activeVehicle) ? ((vehicle === _activeVehicle) ? 1.0 : 0.5) : 1.0
Rectangle { Rectangle {
id: vehicleShadow id: vehicleShadow

Loading…
Cancel
Save