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:
@@ -93,20 +93,19 @@ namespace BlackMisc
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CInformationMessage)
|
||||
InformationType m_type;
|
||||
QString m_message;
|
||||
QDateTime m_receivedTimestamp;
|
||||
|
||||
BLACK_METACLASS(CInformationMessage,
|
||||
BLACK_METAMEMBER(type),
|
||||
BLACK_METAMEMBER(message),
|
||||
BLACK_METAMEMBER(receivedTimestamp)
|
||||
);
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Aviation::CInformationMessage, (
|
||||
o.m_type,
|
||||
o.m_message,
|
||||
o.m_receivedTimestamp
|
||||
))
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Aviation::CInformationMessage)
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user