fix(browser): do not call deprecated QWebEngineProfile method

setRequestInterceptor() was replaced with setUrlRequestInterceptor().
This commit is contained in:
Oleg Shparber 2020-05-10 09:35:34 -04:00
parent cc7bdb0d8d
commit 27e1815702

View File

@ -51,7 +51,7 @@ WebView::WebView(QWidget *parent)
{
UrlRequestInterceptor *requestInterceptor = new UrlRequestInterceptor(this);
QWebEngineProfile *profile = new QWebEngineProfile(this);
profile->setRequestInterceptor(requestInterceptor);
profile->setUrlRequestInterceptor(requestInterceptor);
QWebEnginePage *p = new WebPage(profile, this);
setPage(p);
setZoomLevel(defaultZoomLevel());