summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/filterkey_p.h
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2023-06-09 17:08:30 +0300
committerTarja Sundqvist <tarja.sundqvist@qt.io>2023-06-09 17:08:30 +0300
commitc1f8fa2578d99e07f5e581f26bd532695b9534f9 (patch)
treef2564e0cde06e298b603e867766a6024f6ea943b /src/render/materialsystem/filterkey_p.h
parent01aa0a9cb22ce5ed2b7ead03ed9cbeb5f978e897 (diff)
parentdc68b942aaf17338e4e74d959ab6f56b2134e1a4 (diff)
Merge remote-tracking branch 'origin/tqtc/lts-5.15.11' into tqtc/lts-5.15-opensourcev5.15.11-lts-lgpl
Diffstat (limited to 'src/render/materialsystem/filterkey_p.h')
-rw-r--r--src/render/materialsystem/filterkey_p.h9
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;
};