mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #199, direct access to other context convenience methods
This commit is contained in:
@@ -209,9 +209,7 @@ namespace BlackCore
|
||||
{
|
||||
Q_ASSERT(this->m_voice);
|
||||
Q_ASSERT(this->getRuntime());
|
||||
Q_ASSERT(this->getRuntime()->getIContextNetwork());
|
||||
return this->getRuntime()->getIContextNetwork()->
|
||||
getUsersForCallsigns(this->getCom1RoomCallsigns());
|
||||
return this->getIContextNetwork()->getUsersForCallsigns(this->getCom1RoomCallsigns());
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -283,11 +281,11 @@ namespace BlackCore
|
||||
|
||||
void CContextAudio::settingsChanged(uint typeValue)
|
||||
{
|
||||
if (!this->getRuntime()->getIContextSettings()) return;
|
||||
if (!this->getIContextSettings()) return;
|
||||
IContextSettings::SettingsType type = static_cast<IContextSettings::SettingsType>(typeValue);
|
||||
if (type == IContextSettings::SettingsHotKeys)
|
||||
{
|
||||
CKeyboardKeyList hotKeys = this->getRuntime()->getIContextSettings()->getHotkeys();
|
||||
CKeyboardKeyList hotKeys = this->getIContextSettings()->getHotkeys();
|
||||
CKeyboardKey pttKey = hotKeys.findBy(&BlackMisc::Hardware::CKeyboardKey::getFunction, BlackMisc::Hardware::CKeyboardKey::HotkeyPtt).front();
|
||||
m_keyboard->unregisterHotkey(m_handlePtt);
|
||||
m_handlePtt = m_keyboard->registerHotkey(pttKey, m_voice, &CVoiceVatlib::handlePushToTalk);
|
||||
|
||||
Reference in New Issue
Block a user