From 35648a19ce17c231ceef0938aad1576e5598716b Mon Sep 17 00:00:00 2001 From: evgeny Date: Fri, 2 Oct 2026 17:32:46 +0300 Subject: [PATCH] Avoid Windows poll macro collision in PTT hotkey manager --- tools/chatgui/src/ptt_hotkey_manager.cpp | 4 ++-- tools/chatgui/src/ptt_hotkey_manager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/chatgui/src/ptt_hotkey_manager.cpp b/tools/chatgui/src/ptt_hotkey_manager.cpp index 1cb9526a..e960431c 100644 --- a/tools/chatgui/src/ptt_hotkey_manager.cpp +++ b/tools/chatgui/src/ptt_hotkey_manager.cpp @@ -38,7 +38,7 @@ PttHotkeyManager::PttHotkeyManager() : QObject(qApp) { #endif m_timer.setInterval(10); m_timer.setTimerType(Qt::PreciseTimer); - connect(&m_timer, &QTimer::timeout, this, &PttHotkeyManager::poll); + connect(&m_timer, &QTimer::timeout, this, &PttHotkeyManager::pollKeys); } PttHotkeyManager::~PttHotkeyManager() { @@ -119,7 +119,7 @@ bool PttHotkeyManager::readKeys(PttKeyChord& held) const { #endif } -void PttHotkeyManager::poll() { +void PttHotkeyManager::pollKeys() { PttKeyChord held; if (!readKeys(held)) { DEBUG_ERROR(DEBUG_CATEGORY_RADIO, "PTT: keyboard query failed; transmission disabled"); diff --git a/tools/chatgui/src/ptt_hotkey_manager.h b/tools/chatgui/src/ptt_hotkey_manager.h index e7e68d4e..cec97084 100644 --- a/tools/chatgui/src/ptt_hotkey_manager.h +++ b/tools/chatgui/src/ptt_hotkey_manager.h @@ -36,7 +36,7 @@ signals: private: PttHotkeyManager(); ~PttHotkeyManager() override; - void poll(); + void pollKeys(); bool readKeys(PttKeyChord& held) const; QString keyName(int key) const;