mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #452 changes because of the 452 branch, but only possible after merge with master
Fixed a gcc (Jenkins) warning along with that
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c84bc457df
commit
3923336da8
@@ -53,6 +53,7 @@ namespace BlackCore
|
||||
{
|
||||
this->changeSettings(settings, {});
|
||||
});
|
||||
|
||||
connect(this, &IContextApplication::settingsChanged, [](const CVariantMap &settings, const CIdentifier &origin)
|
||||
{
|
||||
// Intentionally don't check for round trip here
|
||||
@@ -63,24 +64,32 @@ namespace BlackCore
|
||||
{
|
||||
this->registerHotkeyActions(actions, {});
|
||||
});
|
||||
Q_ASSERT(s);
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Connect hotkey action failed");
|
||||
Q_UNUSED(s);
|
||||
|
||||
s = connect(this, &IContextApplication::hotkeyActionsRegistered, [this](const QStringList &actions, const CIdentifier &origin)
|
||||
{
|
||||
if(origin.isFromSameProcess()) { return; }
|
||||
CInputManager::instance()->registerRemoteActions(actions);
|
||||
});
|
||||
Q_ASSERT(s);
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Connect hotkey actions failed");
|
||||
Q_UNUSED(s);
|
||||
|
||||
connect(CInputManager::instance(), &CInputManager::remoteActionFromLocal, [this](const QString &action, bool argument)
|
||||
s = connect(CInputManager::instance(), &CInputManager::remoteActionFromLocal, [this](const QString &action, bool argument)
|
||||
{
|
||||
this->callHotkeyAction(action, argument, {});
|
||||
});
|
||||
connect(this, &IContextApplication::remoteHotkeyAction, [this](const QString &action, bool argument, const CIdentifier &origin)
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Connect remote action failed");
|
||||
Q_UNUSED(s);
|
||||
|
||||
s = connect(this, &IContextApplication::remoteHotkeyAction, [this](const QString &action, bool argument, const CIdentifier &origin)
|
||||
{
|
||||
if(origin.isFromLocalMachine()) { return; }
|
||||
CInputManager::instance()->callFunctionsBy(action, argument);
|
||||
CLogMessage(this, CLogCategory::contextSlot()).debug() << "Calling function" << action << "from origin" << origin.getMachineName();
|
||||
});
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Connect remote hotkey action failed");
|
||||
Q_UNUSED(s);
|
||||
|
||||
// Enable event forwarding from GUI process to core
|
||||
CInputManager::instance()->setForwarding(true);
|
||||
|
||||
@@ -15,19 +15,17 @@
|
||||
#include "blackmisc/aviation/airportlist.h"
|
||||
#include "blackmisc/aviation/atcstationlist.h"
|
||||
#include "blackmisc/aviation/liverylist.h"
|
||||
#include "blackmisc/countrylist.h"
|
||||
#include "blackmisc/identifierlist.h"
|
||||
#include "blackmisc/input/actionhotkeylist.h"
|
||||
#include "blackmisc/namevariantpairlist.h"
|
||||
#include "blackmisc/network/aircraftmappinglist.h"
|
||||
#include "blackmisc/network/clientlist.h"
|
||||
#include "blackmisc/network/serverlist.h"
|
||||
#include "blackmisc/network/textmessagelist.h"
|
||||
#include "blackmisc/network/userlist.h"
|
||||
#include "blackmisc/setkeyboardhotkeylist.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
#include "blackmisc/simulation/distributorlist.h"
|
||||
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
||||
#include "blackmisc/countrylist.h"
|
||||
#include "blackmisc/namevariantpairlist.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/identifierlist.h"
|
||||
|
||||
#endif // guard
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "blackgui/models/countrylistmodel.h"
|
||||
#include "blackgui/models/distributorlistmodel.h"
|
||||
#include "blackgui/models/identifierlistmodel.h"
|
||||
#include "blackgui/models/keyboardkeylistmodel.h"
|
||||
#include "blackgui/models/liverylistmodel.h"
|
||||
#include "blackgui/models/namevariantpairlistmodel.h"
|
||||
#include "blackgui/models/serverlistmodel.h"
|
||||
|
||||
@@ -82,7 +82,5 @@ namespace BlackGui
|
||||
template class IModelFilter<BlackMisc::Simulation::CAircraftModelList>;
|
||||
template class IModelFilter<BlackMisc::Simulation::CDistributorList>;
|
||||
|
||||
template class IModelFilter<BlackMisc::Settings::CSettingKeyboardHotkeyList>;
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -202,7 +202,6 @@ namespace BlackMisc
|
||||
void CSimulatedAircraft::setParts(const CAircraftParts &parts)
|
||||
{
|
||||
m_parts = parts;
|
||||
m_parts.setCallsign(this->getCallsign());
|
||||
}
|
||||
|
||||
void CSimulatedAircraft::setLights(CAircraftLights &lights)
|
||||
|
||||
Reference in New Issue
Block a user