summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-09-26 14:30:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-29 21:59:12 +0000
commitd0cf2e7e9b71c2e147e58467f9c55cbf0dc2adc6 (patch)
tree75ae05bdde6c5bea767b278f0384e31a08dab815
parent9918c243b348778bff65ca62b017728ab09b2233 (diff)
Expose QScreen to QML
Since QQuickScreenCapture is constructed with inheritance, the original "screen" property is still visible in the qmltypes. It should have been constructed with composition instead. Now, since tooling needs to see all types for all properties, we need to expose QScreen here. Fixes: QTBUG-115568 Change-Id: I40f115756e5e81d0dd9a49dfd994d74a247b8279 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 9004cbdc2c4be6b693cddd1f536fa04e064729dd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 5009a11245b56760865c7f05cae70c0d4f2f89b0)
-rw-r--r--src/multimediaquick/qtmultimediaquicktypes_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multimediaquick/qtmultimediaquicktypes_p.h b/src/multimediaquick/qtmultimediaquicktypes_p.h
index 78a48b3f8..d317b3951 100644
--- a/src/multimediaquick/qtmultimediaquicktypes_p.h
+++ b/src/multimediaquick/qtmultimediaquicktypes_p.h
@@ -49,6 +49,13 @@ struct QScreenCaptureForeign
QML_FOREIGN(QScreenCapture)
};
+struct QScreenForeign
+{
+ Q_GADGET
+ QML_ANONYMOUS
+ QML_FOREIGN(QScreen)
+};
+
struct QMediaRecorderForeign
{
Q_GADGET