diff options
Diffstat (limited to 'launcher/QObjectPtr.h')
-rw-r--r-- | launcher/QObjectPtr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/QObjectPtr.h b/launcher/QObjectPtr.h index 0ff51136..57974939 100644 --- a/launcher/QObjectPtr.h +++ b/launcher/QObjectPtr.h @@ -77,6 +77,12 @@ public: { return m_ptr; } + bool operator==(const shared_qobject_ptr<T>& other) { + return m_ptr == other.m_ptr; + } + bool operator!=(const shared_qobject_ptr<T>& other) { + return m_ptr != other.m_ptr; + } private: std::shared_ptr <T> m_ptr; |