mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
committed by
Mathew Sutcliffe
parent
0c8f2f596e
commit
077becfe32
@@ -213,5 +213,10 @@ namespace BlackGui
|
||||
ui->led_MapperReady->setToolTip(m);
|
||||
}
|
||||
}
|
||||
|
||||
void CInfoBarStatusComponent::ps_onPttChanged(bool enabled)
|
||||
{
|
||||
ui->led_Ptt->setOn(enabled);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user