mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T111, use Q_DECLARE_FLAGS SimulatorStatus instead of int
* changed emitSimulatorCombinedStatu * changed connected slots/functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e55480737e
commit
654c35f666
@@ -111,7 +111,12 @@ namespace BlackSimPlugin
|
||||
m_fs9Host(fs9Host),
|
||||
m_lobbyClient(lobbyClient)
|
||||
{
|
||||
connect(lobbyClient.data(), &CLobbyClient::disconnected, this, std::bind(&CSimulatorFs9::simulatorStatusChanged, this, 0));
|
||||
//! \fixme KB 7/2017 change or remove when reviewed Could we just use: connect(lobbyClient.data(), &CLobbyClient::disconnected, this, &CSimulatorFs9::disconnectFrom);
|
||||
connect(lobbyClient.data(), &CLobbyClient::disconnected, this, [ = ]
|
||||
{
|
||||
emit this->simulatorStatusChanged(ISimulator::Disconnected);
|
||||
});
|
||||
|
||||
m_defaultModel =
|
||||
{
|
||||
"Boeing 737-400",
|
||||
|
||||
@@ -317,7 +317,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFsxCommon::onSimStopped()
|
||||
{
|
||||
// stopping events in FSX: Load menu, weather and season
|
||||
const int oldStatus = getSimulatorStatus();
|
||||
const SimulatorStatus oldStatus = getSimulatorStatus();
|
||||
m_simSimulating = false;
|
||||
m_simulatingChangedTs = QDateTime::currentMSecsSinceEpoch();
|
||||
emitSimulatorCombinedStatus(oldStatus);
|
||||
|
||||
Reference in New Issue
Block a user