Connect Ptt LED to push to talk hotkey

refs #881
This commit is contained in:
Roland Winklmeier
2017-03-05 15:15:35 +01:00
committed by Mathew Sutcliffe
parent 0c8f2f596e
commit 077becfe32
2 changed files with 10 additions and 0 deletions

View File

@@ -213,5 +213,10 @@ namespace BlackGui
ui->led_MapperReady->setToolTip(m);
}
}
void CInfoBarStatusComponent::ps_onPttChanged(bool enabled)
{
ui->led_Ptt->setOn(enabled);
}
} // namespace
} // namespace

View File

@@ -12,6 +12,7 @@
#ifndef BLACKGUI_INFOBARSTATUSCOMPONENT_H
#define BLACKGUI_INFOBARSTATUSCOMPONENT_H
#include "blackcore/actionbind.h"
#include "blackcore/network.h"
#include "blackgui/blackguiexport.h"
@@ -53,6 +54,7 @@ namespace BlackGui
private:
QScopedPointer<Ui::CInfoBarStatusComponent> ui;
BlackCore::CActionBind m_actionPtt { "/Voice/Activate push-to-talk", BlackMisc::CIcons::radio16(), this, &CInfoBarStatusComponent::ps_onPttChanged };
private slots:
//! Simulator connection has been changed
@@ -69,6 +71,9 @@ namespace BlackGui
//! Mapper is ready
void ps_onMapperReady();
//! Ptt button changed
void ps_onPttChanged(bool enabled);
};
}
}