mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-12 20:55:39 +08:00
refs #628 Use the metaclass mixins in all value classes.
This commit is contained in:
@@ -65,9 +65,13 @@ namespace BlackMisc
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CTestValueObject)
|
||||
QString m_name;
|
||||
QString m_description;
|
||||
|
||||
BLACK_METACLASS(CTestValueObject,
|
||||
BLACK_METAMEMBER(name),
|
||||
BLACK_METAMEMBER(description)
|
||||
);
|
||||
};
|
||||
|
||||
//! \cond NO_DOXYGEN
|
||||
@@ -85,7 +89,6 @@ namespace BlackMisc
|
||||
|
||||
} // namespace
|
||||
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::CTestValueObject, (o.m_name, o.m_description))
|
||||
Q_DECLARE_METATYPE(BlackMisc::CTestValueObject)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackMisc::CTestValueObject>)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackMisc::CTestValueObject>)
|
||||
|
||||
Reference in New Issue
Block a user