diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-08-18 13:17:16 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2020-09-11 15:58:06 +0200 |
commit | d3882688a8fd70ccd4c42afd2485c3b5d3810547 (patch) | |
tree | c335a2b526d3c379176e651c0fa279fe4c980917 /src/core/net | |
parent | 45793228dc9cad1769b63e32a2d227f8ed0e604c (diff) |
Reuse qwebenginesettings from core in qml
Drop duplicated enums. Use qwebenginesettings as private
for qquickwebenginesettings. This can most likely
be more optimized when profile is moved to core.
Change-Id: I04bdc6c5a35556bf6d38a273cefeeee9d2a0a310
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/net')
-rw-r--r-- | src/core/net/plugin_response_interceptor_url_loader_throttle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp b/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp index 4fdb8c3d0..e75900822 100644 --- a/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp +++ b/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp @@ -71,8 +71,8 @@ void onPdfStreamIntercepted(const GURL &original_url, std::string extension_id, return; WebEngineSettings *settings = contentsDelegate->webEngineSettings(); - if (!settings->testAttribute(WebEngineSettings::PdfViewerEnabled) - || !settings->testAttribute(WebEngineSettings::PluginsEnabled)) { + if (!settings->testAttribute(QWebEngineSettings::PdfViewerEnabled) + || !settings->testAttribute(QWebEngineSettings::PluginsEnabled)) { // If the applications has been set up to always download PDF files to open them in an // external viewer, trigger the download. std::unique_ptr<download::DownloadUrlParameters> params( |