mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Fixed object metadata registration
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "blacksimfreefunctions.h"
|
#include "blacksimfreefunctions.h"
|
||||||
|
|
||||||
#include "blacksim/simulatorinfo.h"
|
#include "blacksim/simulatorinfolist.h"
|
||||||
#include "blacksim/setsimulator.h"
|
#include "blacksim/setsimulator.h"
|
||||||
|
|
||||||
#include "fsx/simconnectutilities.h"
|
#include "fsx/simconnectutilities.h"
|
||||||
@@ -14,6 +14,7 @@ namespace BlackSim
|
|||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
BlackSim::CSimulatorInfo::registerMetadata();
|
BlackSim::CSimulatorInfo::registerMetadata();
|
||||||
|
BlackSim::CSimulatorInfoList::registerMetadata();
|
||||||
BlackSim::Settings::CSettingsSimulator::registerMetadata();
|
BlackSim::Settings::CSettingsSimulator::registerMetadata();
|
||||||
BlackSim::FsCommon::CAircraftCfgEntries::registerMetadata();
|
BlackSim::FsCommon::CAircraftCfgEntries::registerMetadata();
|
||||||
BlackSim::FsCommon::CAircraftMapping::registerMetadata();
|
BlackSim::FsCommon::CAircraftMapping::registerMetadata();
|
||||||
|
|||||||
@@ -26,4 +26,14 @@ namespace BlackSim
|
|||||||
return infoList;
|
return infoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSimulatorInfoList::registerMetadata()
|
||||||
|
{
|
||||||
|
qRegisterMetaType<BlackMisc::CSequence<CSimulatorInfo>>();
|
||||||
|
qDBusRegisterMetaType<BlackMisc::CSequence<CSimulatorInfo>>();
|
||||||
|
qRegisterMetaType<BlackMisc::CCollection<CSimulatorInfo>>();
|
||||||
|
qDBusRegisterMetaType<BlackMisc::CCollection<CSimulatorInfo>>();
|
||||||
|
qRegisterMetaType<CSimulatorInfoList>();
|
||||||
|
qDBusRegisterMetaType<CSimulatorInfoList>();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace BlackSim
|
} // namespace BlackSim
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ namespace BlackSim
|
|||||||
|
|
||||||
//! String list with meaningful representations
|
//! String list with meaningful representations
|
||||||
QStringList toStringList(bool i18n = false) const;
|
QStringList toStringList(bool i18n = false) const;
|
||||||
|
|
||||||
|
//! Register the metatypes
|
||||||
|
static void registerMetadata();
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user