Unverified Commit a56eb54e authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6884 from DonLakeFlyer/DeadMouseArea

Prevent clicks going through top level items
parents 8d080e27 9a9f2049
...@@ -17,7 +17,6 @@ import QGroundControl.FactSystem 1.0 ...@@ -17,7 +17,6 @@ import QGroundControl.FactSystem 1.0
import QGroundControl.FlightMap 1.0 import QGroundControl.FlightMap 1.0
import QGroundControl.Palette 1.0 import QGroundControl.Palette 1.0
/// Instrument panel shown when virtual thumbsticks are visible
Rectangle { Rectangle {
id: root id: root
width: getPreferredInstrumentWidth() width: getPreferredInstrumentWidth()
...@@ -40,6 +39,11 @@ Rectangle { ...@@ -40,6 +39,11 @@ Rectangle {
property real _availableValueHeight: maxHeight - (root.height + _valuesItem.anchors.topMargin) property real _availableValueHeight: maxHeight - (root.height + _valuesItem.anchors.topMargin)
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
// Prevent all clicks from going through to lower layers
DeadMouseArea {
anchors.fill: parent
}
QGCPalette { id: qgcPal } QGCPalette { id: qgcPal }
QGCAttitudeWidget { QGCAttitudeWidget {
...@@ -68,6 +72,11 @@ Rectangle { ...@@ -68,6 +72,11 @@ Rectangle {
height: _valuesWidget.height height: _valuesWidget.height
visible: widgetRoot.showValues visible: widgetRoot.showValues
// Prevent all clicks from going through to lower layers
DeadMouseArea {
anchors.fill: parent
}
Rectangle { Rectangle {
anchors.fill: _valuesWidget anchors.fill: _valuesWidget
color: qgcPal.window color: qgcPal.window
......
...@@ -62,6 +62,11 @@ Rectangle { ...@@ -62,6 +62,11 @@ Rectangle {
flyButton.checked = true flyButton.checked = true
} }
// Prevent all clicks from going through to lower layers
DeadMouseArea {
anchors.fill: parent
}
/// Bottom single pixel divider /// Bottom single pixel divider
Rectangle { Rectangle {
anchors.left: parent.left anchors.left: parent.left
......
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