mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #628 Use the metaclass mixins in all value classes.
This commit is contained in:
@@ -56,9 +56,13 @@ namespace BlackMisc
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CNavDataReference)
|
||||
int m_id = 0;
|
||||
Geo::CCoordinateGeodetic m_position;
|
||||
|
||||
BLACK_METACLASS(CNavDataReference,
|
||||
BLACK_METAMEMBER(id),
|
||||
BLACK_METAMEMBER(position)
|
||||
);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -87,9 +91,4 @@ Q_DECLARE_METATYPE(BlackMisc::Simulation::XPlane::CNavDataReferenceList)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackMisc::Simulation::XPlane::CNavDataReference>)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackMisc::Simulation::XPlane::CNavDataReference>)
|
||||
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Simulation::XPlane::CNavDataReference, (
|
||||
attr(o.m_id),
|
||||
attr(o.m_position)
|
||||
))
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user