summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/forward-declared-param.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-10 18:25:02 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-09-19 11:14:30 +0200
commit5c808073af5b8f1290602fcccf60666c9a3682f8 (patch)
tree97545220e79498a2dc2bb95f41da14ecce75cbd0 /tests/auto/tools/moc/forward-declared-param.h
parentb30801f64db5211bfb4392f13a6ff06d30288cb5 (diff)
Extend QSequentialIterable and add QAssociativeIterable
And add mutable iterators. This requires some refactoring of the existing iterators. Task-number: QTBUG-81716 Change-Id: I61b3a3e8c0df5fd449679257a29d9f0c3d19c4f0 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/forward-declared-param.h')
-rw-r--r--tests/auto/tools/moc/forward-declared-param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/forward-declared-param.h b/tests/auto/tools/moc/forward-declared-param.h
index 484e546482..8438ca9128 100644
--- a/tests/auto/tools/moc/forward-declared-param.h
+++ b/tests/auto/tools/moc/forward-declared-param.h
@@ -38,6 +38,8 @@ struct ForwardDeclaredParam;
template <typename T> class ForwardDeclaredContainer;
struct FullyDefined {};
+inline size_t qHash(const FullyDefined &, size_t seed = 0) { return seed; }
+inline bool operator==(const FullyDefined &, const FullyDefined &) { return true; }
Q_DECLARE_METATYPE(FullyDefined)
class ForwardDeclaredParamClass : public QObject