summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/browser/downloadmanager.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-08-18 18:19:48 +0200
committerAllan Sandfeld Jensen <allan.jensen@digia.com>2014-08-19 10:16:04 +0200
commitafd4c43bcef467da03d89d5468742a1dcbfa04fa (patch)
tree40e76f4472d79c2365f63c8af66f164e2bafbbb1 /examples/webenginewidgets/browser/downloadmanager.cpp
parent89c41f52f6d90d9cad2b054908ef51238c6612a9 (diff)
Re-enable some qwebenginesetting features in browser example
We now have the QWebEngineSettings class and can re-enable the features that were previously disabled in the browser that depended on it. Change-Id: I525dd1a4b5c380ad4c6060f276440e069f633897 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'examples/webenginewidgets/browser/downloadmanager.cpp')
-rw-r--r--examples/webenginewidgets/browser/downloadmanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/webenginewidgets/browser/downloadmanager.cpp b/examples/webenginewidgets/browser/downloadmanager.cpp
index b5fdcb185..1ed27e642 100644
--- a/examples/webenginewidgets/browser/downloadmanager.cpp
+++ b/examples/webenginewidgets/browser/downloadmanager.cpp
@@ -57,9 +57,7 @@
#include <QtCore/QDebug>
-#if defined(QWEBENGINESETTINGS)
#include <QWebEngineSettings>
-#endif
/*!
DownloadItem is a widget that is displayed in the download manager list.
@@ -431,7 +429,7 @@ void DownloadManager::updateRow()
downloadsView->setRowHeight(row, item->minimumSizeHint().height());
bool remove = false;
-#if defined(QWEBENGINESETTINGS)
+#if defined(QTWEBENGINE_PRIVATEBROWSING)
QWebEngineSettings *globalSettings = QWebEngineSettings::globalSettings();
if (!item->downloading()
&& globalSettings->testAttribute(QWebEngineSettings::PrivateBrowsingEnabled))