mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-22 21:53:03 +03:00
fix(browser): do not call deprecated QWebEngineProfile method
setRequestInterceptor() was replaced with setUrlRequestInterceptor().
This commit is contained in:
parent
cc7bdb0d8d
commit
27e1815702
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user