diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-30 16:42:34 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-02 11:11:23 +0100 |
commit | b0efb7b30efcfec857964c65a3930b619422e41e (patch) | |
tree | c06bec766aafbe6b8363f997b4d6b01e5b09282f | |
parent | 697d1b1220ef5d9eedec840c3cee92039f109c50 (diff) |
WebViewQuick: Fix QML module
The module depends on QtQuick because WebView is derived from
QQuickItem. It should also forward its version to the QtWebEngine
dependency (for consistency; it makes no functional difference) and it
should not force pointless plugin loading.
Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-112346
Change-Id: I57656e1fa064fbe0b57ae9ea9e204770ff709a59
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/quick/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quick/CMakeLists.txt b/src/quick/CMakeLists.txt index 09c1653..b8f8ce9 100644 --- a/src/quick/CMakeLists.txt +++ b/src/quick/CMakeLists.txt @@ -3,7 +3,7 @@ if(TARGET Qt::WebEngineQuick) - set(qmlDependency DEPENDENCIES "QtWebEngine/2.0") + set(qmlDependency "QtWebEngine/auto") endif() qt_internal_add_qml_module(WebViewQuick @@ -11,8 +11,9 @@ qt_internal_add_qml_module(WebViewQuick VERSION "${PROJECT_VERSION}" CLASS_NAME QWebViewQuickPlugin PLUGIN_TARGET qtwebviewquickplugin - NO_PLUGIN_OPTIONAL - ${qmlDependency} + DEPENDENCIES + QtQuick/auto + ${qmlDependency} SOURCES qquickviewcontroller.cpp qquickviewcontroller_p.h qquickwebview.cpp qquickwebview_p.h |