Browse Source

Notify user of touch area toggle

QGC4.4
Don Gagne 2 years ago committed by Don Gagne
parent
commit
1c90dba540
  1. 10
      src/ui/MainRootWindow.qml

10
src/ui/MainRootWindow.qml

@ -373,6 +373,7 @@ ApplicationWindow { @@ -373,6 +373,7 @@ ApplicationWindow {
onClicked: {
if (mouse.modifiers & Qt.ControlModifier) {
QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
showTouchAreasNotification.open()
} else if (ScreenTools.isMobile || mouse.modifiers & Qt.ShiftModifier) {
if(!QGroundControl.corePlugin.showAdvancedUI) {
advancedModeOnConfirmation.open()
@ -385,7 +386,14 @@ ApplicationWindow { @@ -385,7 +386,14 @@ ApplicationWindow {
// This allows you to change this on mobile
onPressAndHold: {
QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
console.log("Press and hold", QGroundControl.corePlugin.showTouchAreas)
showTouchAreasNotification.open()
}
MessageDialog {
id: showTouchAreasNotification
title: qsTr("Debug Touch Areas")
text: qsTr("Touch Area display toggled")
standardButtons: StandardButton.Ok
}
MessageDialog {

Loading…
Cancel
Save