mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 14:07:35 +08:00
refs #628 Use the metaclass mixins in all value classes.
This commit is contained in:
@@ -46,18 +46,17 @@ namespace BlackMisc
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CAircraftEngine)
|
||||
int m_number = 1;
|
||||
bool m_on = true;
|
||||
|
||||
BLACK_METACLASS(CAircraftEngine,
|
||||
BLACK_METAMEMBER(number, 0, DisabledForJson),
|
||||
BLACK_METAMEMBER(on)
|
||||
);
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Aviation::CAircraftEngine)
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Aviation::CAircraftEngine, (
|
||||
attr(o.m_number, flags<DisabledForJson>()),
|
||||
attr(o.m_on, "on")
|
||||
))
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user