mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T609, encapsulate PTT action/key
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "blackcore/context/contextapplication.h"
|
||||
#include "blackcore/context/contextaudio.h"
|
||||
#include "blackcore/inputmanager.h"
|
||||
#include "blackmisc/input/actionhotkeydefs.h"
|
||||
#include "ui_settingshotkeycomponent.h"
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
@@ -67,7 +68,7 @@ namespace BlackGui
|
||||
void CSettingsHotkeyComponent::registerDummyPttEntry()
|
||||
{
|
||||
Q_ASSERT_X(sApp && sApp->getInputManager(), Q_FUNC_INFO, "Missing input manager");
|
||||
sApp->getInputManager()->registerAction(IContextAudio::pttHotkeyAction(), IContextAudio::pttHotkeyIcon());
|
||||
sApp->getInputManager()->registerAction(pttHotkeyAction(), pttHotkeyIcon());
|
||||
}
|
||||
|
||||
void CSettingsHotkeyComponent::addEntry()
|
||||
|
||||
Reference in New Issue
Block a user