summaryrefslogtreecommitdiffstats
path: root/src/webview/qwebviewfactory.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/webview/qwebviewfactory.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/webview/qwebviewfactory.cpp')
-rw-r--r--src/webview/qwebviewfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/qwebviewfactory.cpp b/src/webview/qwebviewfactory.cpp
index f4a2b15..05ec09e 100644
--- a/src/webview/qwebviewfactory.cpp
+++ b/src/webview/qwebviewfactory.cpp
@@ -19,12 +19,12 @@ static QString getPluginName()
return name;
}
-QAbstractWebView *QWebViewFactory::createWebView()
+QAbstractWebView *QWebViewFactory::createWebView(QWebView *view)
{
QAbstractWebView *wv = nullptr;
QWebViewPlugin *plugin = getPlugin();
if (plugin)
- wv = plugin->create(QStringLiteral("webview"));
+ wv = plugin->create(QStringLiteral("webview"), view);
if (!wv || !plugin) {
qFatal("No WebView plug-in found!");