From 2139fc2a5f9dc5d86360c12c76ae50fb34acbb8c Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 7 May 2019 02:31:20 +0200 Subject: [PATCH] Use definition for PTT --- src/swiftguistandard/swiftguistd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/swiftguistandard/swiftguistd.h b/src/swiftguistandard/swiftguistd.h index 3c5503158..1cd216f6d 100644 --- a/src/swiftguistandard/swiftguistd.h +++ b/src/swiftguistandard/swiftguistd.h @@ -27,6 +27,7 @@ #include "blackcore/network.h" #include "blackmisc/simulation/simulatedaircraft.h" #include "blackmisc/audio/notificationsounds.h" +#include "blackmisc/input/actionhotkeydefs.h" #include "blackmisc/identifiable.h" #include "blackmisc/variant.h" #include "blackmisc/loghandler.h" @@ -104,7 +105,7 @@ private: QScopedPointer m_navigator{ new BlackGui::Components::CNavigatorDialog() }; //!< navigator dialog bar, if I pass the parent, the dialog is always centered over the parent QScopedPointer m_dbLoadDialog; //!< load DB data, lazy init UI component QScopedPointer m_validationDialog; //!< aircraft model validation dialog - BlackCore::CActionBind m_actionPtt { "/Voice/Activate push-to-talk", BlackMisc::CIcons::radio16(), this, &SwiftGuiStd::onPttChanged }; + BlackCore::CActionBind m_actionPtt { BlackMisc::Input::pttHotkeyAction(), BlackMisc::CIcons::radio16(), this, &SwiftGuiStd::onPttChanged }; BlackCore::CActionBindings m_menuHotkeyHandlers; BlackGui::CManagedStatusBar m_statusBar; BlackMisc::CLogSubscriber m_logSubscriber { this, &SwiftGuiStd::displayStatusMessageInGui };