mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
committed by
Mathew Sutcliffe
parent
0c8f2f596e
commit
077becfe32
@@ -213,5 +213,10 @@ namespace BlackGui
|
|||||||
ui->led_MapperReady->setToolTip(m);
|
ui->led_MapperReady->setToolTip(m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CInfoBarStatusComponent::ps_onPttChanged(bool enabled)
|
||||||
|
{
|
||||||
|
ui->led_Ptt->setOn(enabled);
|
||||||
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#ifndef BLACKGUI_INFOBARSTATUSCOMPONENT_H
|
#ifndef BLACKGUI_INFOBARSTATUSCOMPONENT_H
|
||||||
#define BLACKGUI_INFOBARSTATUSCOMPONENT_H
|
#define BLACKGUI_INFOBARSTATUSCOMPONENT_H
|
||||||
|
|
||||||
|
#include "blackcore/actionbind.h"
|
||||||
#include "blackcore/network.h"
|
#include "blackcore/network.h"
|
||||||
#include "blackgui/blackguiexport.h"
|
#include "blackgui/blackguiexport.h"
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::CInfoBarStatusComponent> ui;
|
QScopedPointer<Ui::CInfoBarStatusComponent> ui;
|
||||||
|
BlackCore::CActionBind m_actionPtt { "/Voice/Activate push-to-talk", BlackMisc::CIcons::radio16(), this, &CInfoBarStatusComponent::ps_onPttChanged };
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Simulator connection has been changed
|
//! Simulator connection has been changed
|
||||||
@@ -69,6 +71,9 @@ namespace BlackGui
|
|||||||
|
|
||||||
//! Mapper is ready
|
//! Mapper is ready
|
||||||
void ps_onMapperReady();
|
void ps_onMapperReady();
|
||||||
|
|
||||||
|
//! Ptt button changed
|
||||||
|
void ps_onPttChanged(bool enabled);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user