diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2023-06-09 17:08:30 +0300 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2023-06-09 17:08:30 +0300 |
commit | c1f8fa2578d99e07f5e581f26bd532695b9534f9 (patch) | |
tree | f2564e0cde06e298b603e867766a6024f6ea943b /src/render/materialsystem/filterkey_p.h | |
parent | 01aa0a9cb22ce5ed2b7ead03ed9cbeb5f978e897 (diff) | |
parent | dc68b942aaf17338e4e74d959ab6f56b2134e1a4 (diff) |
Merge remote-tracking branch 'origin/tqtc/lts-5.15.11' into tqtc/lts-5.15-opensourcev5.15.11-lts-lgpl
Change-Id: I81f01dbde95cc9cd8e98c7fb9bf3a390aa27f379
Diffstat (limited to 'src/render/materialsystem/filterkey_p.h')
-rw-r--r-- | src/render/materialsystem/filterkey_p.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/materialsystem/filterkey_p.h b/src/render/materialsystem/filterkey_p.h index 91d0ba1f0..1fe6bba7b 100644 --- a/src/render/materialsystem/filterkey_p.h +++ b/src/render/materialsystem/filterkey_p.h @@ -72,10 +72,15 @@ public: const QVariant &value() const { return m_value; } const QString &name() const { return m_name; } void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; - bool operator ==(const FilterKey &other); - bool operator !=(const FilterKey &other); + + friend bool operator==(const FilterKey &lhs, const FilterKey &rhs) + { return lhs.equals(rhs); } + friend bool operator !=(const FilterKey &lhs, const FilterKey &rhs) + { return !lhs.equals(rhs); } private: + bool equals(const FilterKey &other) const; + QVariant m_value; QString m_name; }; |