refs #628 Use the metaclass mixins in all value classes.

This commit is contained in:
Mathew Sutcliffe
2016-04-02 17:34:18 +01:00
parent 4f3637a046
commit 4bd4baa535
82 changed files with 629 additions and 560 deletions

View File

@@ -72,15 +72,17 @@ namespace BlackMisc
QString convertToQString(bool i18n = false) const;
private:
BLACK_ENABLE_TUPLE_CONVERSION(CJoystickButton)
int m_buttonIndex = m_invalidIndex;
static constexpr int m_invalidIndex = -1;
BLACK_METACLASS(CJoystickButton,
BLACK_METAMEMBER(buttonIndex)
);
};
}
}
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Input::CJoystickButton, (o.m_buttonIndex))
Q_DECLARE_METATYPE(BlackMisc::Input::CJoystickButton)
#endif // guard