aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickforeignutils_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/util/qquickforeignutils_p.h')
-rw-r--r--src/quick/util/qquickforeignutils_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/quick/util/qquickforeignutils_p.h b/src/quick/util/qquickforeignutils_p.h
index 1ce53ae7ef..5d257fb16d 100644
--- a/src/quick/util/qquickforeignutils_p.h
+++ b/src/quick/util/qquickforeignutils_p.h
@@ -99,6 +99,22 @@ struct QEventPointForeign
QML_ADDED_IN_VERSION(6, 5)
};
+// Prevent the same QEventPoint type from being exported into qmltypes
+// twice, as a value type and a namespace.
+// TODO: Remove once QTBUG-115855 is fixed.
+struct QEventPointDerived : public QEventPoint
+{
+ Q_GADGET
+};
+
+namespace QEventPointForeignNamespace
+{
+ Q_NAMESPACE
+ QML_FOREIGN_NAMESPACE(QEventPointDerived)
+ QML_NAMED_ELEMENT(EventPoint)
+ QML_ADDED_IN_VERSION(6, 6)
+};
+
QT_END_NAMESPACE
#endif // QTQUICKFOREIGN_P_H