Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ea70ec63 authored by Laurent Montel's avatar Laurent Montel 😁

Use new setUrlRequestInterceptor api (qt5.13)

parent b21b43e9
......@@ -47,7 +47,11 @@ InterceptorManager::InterceptorManager(QWebEngineView *webEngine, KActionCollect
for (WebEngineViewer::NetworkPluginUrlInterceptorInterface *interface : d->mManager->interfaceList()) {
d->mNetworkUrlInterceptor->addInterceptor(interface);
}
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
webEngine->page()->profile()->setRequestInterceptor(d->mNetworkUrlInterceptor);
#else
webEngine->page()->profile()->setUrlRequestInterceptor(d->mNetworkUrlInterceptor);
#endif
}
InterceptorManager::~InterceptorManager()
......
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