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 {
onClicked: { onClicked: {
if (mouse.modifiers & Qt.ControlModifier) { if (mouse.modifiers & Qt.ControlModifier) {
QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
showTouchAreasNotification.open()
} else if (ScreenTools.isMobile || mouse.modifiers & Qt.ShiftModifier) { } else if (ScreenTools.isMobile || mouse.modifiers & Qt.ShiftModifier) {
if(!QGroundControl.corePlugin.showAdvancedUI) { if(!QGroundControl.corePlugin.showAdvancedUI) {
advancedModeOnConfirmation.open() advancedModeOnConfirmation.open()
@ -385,7 +386,14 @@ ApplicationWindow {
// This allows you to change this on mobile // This allows you to change this on mobile
onPressAndHold: { onPressAndHold: {
QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas 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 { MessageDialog {

Loading…
Cancel
Save