From 1c90dba5401668b8bcde519105a9c1a29cccd33c Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 8 Aug 2023 12:15:02 -0700 Subject: [PATCH] Notify user of touch area toggle --- src/ui/MainRootWindow.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ui/MainRootWindow.qml b/src/ui/MainRootWindow.qml index 70845f1..ac7a16f 100644 --- a/src/ui/MainRootWindow.qml +++ b/src/ui/MainRootWindow.qml @@ -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 { // 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 {