summaryrefslogtreecommitdiffstats
path: root/logic/QObjectPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/QObjectPtr.h')
-rw-r--r--logic/QObjectPtr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/QObjectPtr.h b/logic/QObjectPtr.h
index 74c6e82a..2bde1bd8 100644
--- a/logic/QObjectPtr.h
+++ b/logic/QObjectPtr.h
@@ -46,6 +46,10 @@ public:
{
return m_ptr.get() != nullptr;
}
+ const std::shared_ptr <T> unwrap() const
+ {
+ return m_ptr;
+ }
private:
std::shared_ptr <T> m_ptr;