diff options
Diffstat (limited to 'src/plugins/windows/qwebview2webviewplugin.cpp')
| -rw-r--r-- | src/plugins/windows/qwebview2webviewplugin.cpp | 4 |
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; } }; |
