summaryrefslogtreecommitdiffstats
path: root/src/plugins/windows/qwebview2webviewplugin.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2025-11-20 10:54:00 +0100
committerMichal Klocek <michal.klocek@qt.io>2025-11-27 09:57:13 +0100
commit95a53e2467029e917d6d421a357c13d51aaa44db (patch)
tree6aafb348744ab0238eb0bcfbf8fc00057a01fd86 /src/plugins/windows/qwebview2webviewplugin.cpp
parentddb86461871086d3ea5f9b6d58838a2dca427a0c (diff)
Pass the pointer to QWebView for private counterpart
QAbstarctWebView is going to be base class of pimpl for QWebView. Change-Id: I58636bc5017092e1b9360d05109a305d49899043 Reviewed-by: Kaloyan Chehlarski <kaloyan.chehlarski@qt.io> Reviewed-by: Moss Heim <moss.heim@qt.io>
Diffstat (limited to 'src/plugins/windows/qwebview2webviewplugin.cpp')
-rw-r--r--src/plugins/windows/qwebview2webviewplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/windows/qwebview2webviewplugin.cpp b/src/plugins/windows/qwebview2webviewplugin.cpp
index c674df3..e8a0432 100644
--- a/src/plugins/windows/qwebview2webviewplugin.cpp
+++ b/src/plugins/windows/qwebview2webviewplugin.cpp
@@ -13,9 +13,9 @@ class QWebView2WebViewPlugin : public QWebViewPlugin
Q_PLUGIN_METADATA(IID QWebViewPluginInterface_iid FILE "windows.json")
public:
- QAbstractWebView *create(const QString &key) const override
+ QAbstractWebView *create(const QString &key, QWebView *view) const override
{
- return (key == QLatin1String("webview")) ? new QWebView2WebViewPrivate() : nullptr;
+ return (key == QLatin1String("webview")) ? new QWebView2WebViewPrivate(view) : nullptr;
}
};