summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/browser/history.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/history.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/history.cpp')
-rw-r--r--examples/webenginewidgets/browser/history.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/webenginewidgets/browser/history.cpp b/examples/webenginewidgets/browser/history.cpp
index caf6a4aac..a2c25ee12 100644
--- a/examples/webenginewidgets/browser/history.cpp
+++ b/examples/webenginewidgets/browser/history.cpp
@@ -62,9 +62,7 @@
#if defined(QWEBENGINEHISTORYINTERFACE)
#include <QWebEngineHistoryInterface>
#endif
-#if defined(QWEBENGINESETTINGS)
#include <QWebEngineSettings>
-#endif
#include <QtCore/QDebug>
@@ -189,7 +187,7 @@ void HistoryManager::checkForExpired()
void HistoryManager::addHistoryItem(const HistoryItem &item)
{
-#if defined(QWEBENGINESETTINGS)
+#if defined(QTWEBENGINE_PRIVATEBROWSING)
QWebEngineSettings *globalSettings = QWebEngineSettings::globalSettings();
if (globalSettings->testAttribute(QWebEngineSettings::PrivateBrowsingEnabled))
return;