nodevalue: add convenience function for retrieving internal value

This commit is contained in:
itsmattkc
2022-05-07 15:37:19 -07:00
parent 053f70a69e
commit b5d7be9e47
+6
View File
@@ -203,6 +203,12 @@ public:
return type_;
}
template <typename T>
T value() const
{
return data_.value<T>();
}
const QVariant& data() const
{
return data_;