Browse Source

FlyView: Fix tool insets in the custom layer

There is a default custom layer which is used in a non-custom build.
This commit makes this layer properly pass through the tool insets
unchanged
QGC4.4
James Mare 2 years ago committed by Don Gagne
parent
commit
cf822ad0d2
  1. 27
      src/FlightDisplay/FlyViewCustomLayer.qml

27
src/FlightDisplay/FlyViewCustomLayer.qml

@ -36,19 +36,20 @@ Item {
property var totalToolInsets: _toolInsets // These are the insets for your custom overlay additions property var totalToolInsets: _toolInsets // These are the insets for your custom overlay additions
property var mapControl property var mapControl
// since this file is a placeholder for the custom layer in a standard build, we will just pass through the parent insets
QGCToolInsets { QGCToolInsets {
id: _toolInsets id: _toolInsets
leftEdgeCenterInset: 0 leftEdgeTopInset: parentToolInsets.leftEdgeTopInset
leftEdgeTopInset: 0 leftEdgeCenterInset: parentToolInsets.leftEdgeCenterInset
leftEdgeBottomInset: 0 leftEdgeBottomInset: parentToolInsets.leftEdgeBottomInset
rightEdgeCenterInset: 0 rightEdgeTopInset: parentToolInsets.rightEdgeTopInset
rightEdgeTopInset: 0 rightEdgeCenterInset: parentToolInsets.rightEdgeCenterInset
rightEdgeBottomInset: 0 rightEdgeBottomInset: parentToolInsets.rightEdgeBottomInset
topEdgeCenterInset: 0 topEdgeLeftInset: parentToolInsets.topEdgeLeftInset
topEdgeLeftInset: 0 topEdgeCenterInset: parentToolInsets.topEdgeCenterInset
topEdgeRightInset: 0 topEdgeRightInset: parentToolInsets.topEdgeRightInset
bottomEdgeCenterInset: 0 bottomEdgeLeftInset: parentToolInsets.bottomEdgeLeftInset
bottomEdgeLeftInset: 0 bottomEdgeCenterInset: parentToolInsets.bottomEdgeCenterInset
bottomEdgeRightInset: 0 bottomEdgeRightInset: parentToolInsets.bottomEdgeRightInset
} }
} }

Loading…
Cancel
Save