From b5a687e6aaa38744840690631cdae1a38efdbfea Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 9 Mar 2018 17:05:44 +0100 Subject: Add registration of QQuickWebEngineDownloadItem / 1.7 Explicitly register the new property added in 7219986a18d45d. Because of QTBUG-50990 this is strictly speaking not necessary at runtime, but makes sure that qmlplugindump also generates metadata about the new property. Change-Id: Idcc286aa7b25eb50d0f37cda8ee718d65a51e7f7 Reviewed-by: Michal Klocek --- src/webengine/plugin/plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/webengine') diff --git a/src/webengine/plugin/plugin.cpp b/src/webengine/plugin/plugin.cpp index 162c814fa..c9c9555e9 100644 --- a/src/webengine/plugin/plugin.cpp +++ b/src/webengine/plugin/plugin.cpp @@ -108,6 +108,8 @@ public: tr("Cannot create a separate instance of WebEngineDownloadItem")); qmlRegisterUncreatableType(uri, 1, 6, "WebEngineDownloadItem", tr("Cannot create a separate instance of WebEngineDownloadItem")); + qmlRegisterUncreatableType(uri, 1, 7, "WebEngineDownloadItem", + tr("Cannot create a separate instance of WebEngineDownloadItem")); qmlRegisterUncreatableType(uri, 1, 1, "WebEngineNewViewRequest", msgUncreatableType("WebEngineNewViewRequest")); qmlRegisterUncreatableType(uri, 1, 5, "WebEngineNewViewRequest", tr("Cannot create separate instance of WebEngineNewViewRequest")); qmlRegisterUncreatableType(uri, 1, 1, "WebEngineSettings", tr("Cannot create a separate instance of WebEngineSettings")); -- cgit v1.2.3