Commit db55316b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Now it depends against new version. Old code can be removed

parent 77ec100b
...@@ -88,11 +88,7 @@ class ScriptingHtmlDialog : public QDialog { ...@@ -88,11 +88,7 @@ class ScriptingHtmlDialog : public QDialog {
setLayout(layout); setLayout(layout);
layout->setContentsMargins(0,0,0,0); layout->setContentsMargins(0,0,0,0);
m_webView.settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false); m_webView.settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false);
#if QTWEBENGINEWIDGETS_VERSION < QT_VERSION_CHECK(5, 13, 0)
m_webView.page()->profile()->setRequestInterceptor(new RemoteUrlInterceptor(this));
#else
m_webView.page()->profile()->setUrlRequestInterceptor(new RemoteUrlInterceptor(this)); m_webView.page()->profile()->setUrlRequestInterceptor(new RemoteUrlInterceptor(this));
#endif
#endif #endif
} }
#if WEBENGINE_SCRIPTING_ENABLED #if WEBENGINE_SCRIPTING_ENABLED
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment