aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2022-07-29 05:43:11 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2022-08-01 09:52:52 +0200
commit5d835b7a2ed80f22cb9587150642d4c32bcfdac8 (patch)
treea99fc914588355fd3966c65a3b6fd6d0ea3a32a4 /src
parent41ebc90a0f80c2ffe20187a752e787ea84ad7d5c (diff)
QtQuick: Expose QImage to QML
We need to expose it to QML since it is used as a type in a few places. Change-Id: I5015fd1634f71d14dd91133404f6abe2cb9db3c5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/util/qquickforeignutils_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/util/qquickforeignutils_p.h b/src/quick/util/qquickforeignutils_p.h
index 25e2f7e998..aad69cc83a 100644
--- a/src/quick/util/qquickforeignutils_p.h
+++ b/src/quick/util/qquickforeignutils_p.h
@@ -40,6 +40,13 @@ struct QStyleHintsForeign
QML_ADDED_IN_VERSION(6, 4)
};
+struct QImageForeign
+{
+ Q_GADGET
+ QML_FOREIGN(QImage)
+ QML_ANONYMOUS
+};
+
#if QT_CONFIG(validator)
struct QValidatorForeign
{