From b5d7be9e47ffb387c0e91163ed05d6b3f3aae78e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 7 May 2022 15:37:19 -0700 Subject: [PATCH] nodevalue: add convenience function for retrieving internal value --- app/node/value.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/node/value.h b/app/node/value.h index 886b4f470..e16fc1055 100644 --- a/app/node/value.h +++ b/app/node/value.h @@ -203,6 +203,12 @@ public: return type_; } + template + T value() const + { + return data_.value(); + } + const QVariant& data() const { return data_;