summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-08-18 17:04:11 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-21 20:03:50 +0000
commitc9e8df38689056b6c28a0116ed38c7f21c146334 (patch)
treedf1f6eedeb2ee0edb790ece336afd02dcc26706b /src
parente705ed237c4d9755b2152e99cbed86077f0fba16 (diff)
QWebEngineQuotaRequest: add deprecation guards
This class was marked as deprecated for Qt 6.5, but not everywhere. This commit amends 8fd7140082e3a752ca80882a29128ffc12d12fa4. Change-Id: I7253a88aae20519befbabf01e63bb7d49c37cef0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ac946f96e1123f2e6ab1ecb883cbebb2d3898b5c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/api/qwebenginepage.cpp2
-rw-r--r--src/webenginequick/api/qquickwebengineforeigntypes_p.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/api/qwebenginepage.cpp b/src/core/api/qwebenginepage.cpp
index 37a0d9ff3..b548309c5 100644
--- a/src/core/api/qwebenginepage.cpp
+++ b/src/core/api/qwebenginepage.cpp
@@ -103,7 +103,9 @@ QWebEnginePagePrivate::QWebEnginePagePrivate(QWebEngineProfile *_profile)
{
memset(actions, 0, sizeof(actions));
+#if QT_DEPRECATED_SINCE(6, 5)
qRegisterMetaType<QWebEngineQuotaRequest>();
+#endif
qRegisterMetaType<QWebEngineRegisterProtocolHandlerRequest>();
qRegisterMetaType<QWebEngineFileSystemAccessRequest>();
qRegisterMetaType<QWebEngineFindTextResult>();
diff --git a/src/webenginequick/api/qquickwebengineforeigntypes_p.h b/src/webenginequick/api/qquickwebengineforeigntypes_p.h
index 08fac43d5..b5f3b3c22 100644
--- a/src/webenginequick/api/qquickwebengineforeigntypes_p.h
+++ b/src/webenginequick/api/qquickwebengineforeigntypes_p.h
@@ -148,6 +148,7 @@ struct ForeignWebEngineContextMenuRequest
QML_UNCREATABLE("")
};
+#if QT_DEPRECATED_SINCE(6, 5)
struct ForeignWebEngineQuotaRequest
{
Q_GADGET
@@ -157,6 +158,7 @@ struct ForeignWebEngineQuotaRequest
QML_EXTRA_VERSION(2, 0)
QML_UNCREATABLE("")
};
+#endif
struct ForeignWebEngineRegisterProtocolHandlerRequest
{