summaryrefslogtreecommitdiffstats
path: root/logic/QObjectPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/QObjectPtr.h')
-rw-r--r--logic/QObjectPtr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/QObjectPtr.h b/logic/QObjectPtr.h
index 2bde1bd8..32e59bd9 100644
--- a/logic/QObjectPtr.h
+++ b/logic/QObjectPtr.h
@@ -19,6 +19,11 @@ public:
{
m_ptr = other.m_ptr;
}
+ template<typename Derived>
+ QObjectPtr(const QObjectPtr<Derived> &other)
+ {
+ m_ptr = other.unwrap();
+ }
public:
void reset(T * wrap)