Convenience utilities

This commit is contained in:
Mat Sutcliffe
2021-05-01 21:45:35 +01:00
parent ae303019b8
commit 68a49e646e
2 changed files with 10 additions and 0 deletions

View File

@@ -213,6 +213,9 @@ namespace BlackMisc
//! Return the metatype ID of the value in this variant.
int userType() const { return m_v.userType(); }
//! Return the QMetaType of the type in this variant.
QMetaType metaType() const { return QMetaType(userType()); }
//! \copydoc BlackMisc::Mixin::JsonByMetaClass::toJson
QJsonObject toJson() const;