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