diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-18 18:19:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-19 10:16:04 +0200 |
commit | afd4c43bcef467da03d89d5468742a1dcbfa04fa (patch) | |
tree | 40e76f4472d79c2365f63c8af66f164e2bafbbb1 /examples/webenginewidgets/browser/toolbarsearch.cpp | |
parent | 89c41f52f6d90d9cad2b054908ef51238c6612a9 (diff) | |
download | qtwebengine-afd4c43bcef467da03d89d5468742a1dcbfa04fa.tar.gz |
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/toolbarsearch.cpp')
-rw-r--r-- | examples/webenginewidgets/browser/toolbarsearch.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/webenginewidgets/browser/toolbarsearch.cpp b/examples/webenginewidgets/browser/toolbarsearch.cpp index 0a94b6dba..eb699e60c 100644 --- a/examples/webenginewidgets/browser/toolbarsearch.cpp +++ b/examples/webenginewidgets/browser/toolbarsearch.cpp @@ -50,9 +50,7 @@ #include <QtWidgets/QMenu> #include <QtCore/QStringListModel> -#if defined(QWEBENGINESETTINGS) #include <QWebEngineSettings> -#endif /* ToolbarSearch is a very basic search widget that also contains a small history. @@ -111,7 +109,7 @@ void ToolbarSearch::searchNow() if (newList.size() >= m_maxSavedSearches) newList.removeLast(); -#if defined(QWEBENGINESETTINGS) +#if defined(QTWEBENGINE_PRIVATEBROWSING) QWebEngineSettings *globalSettings = QWebEngineSettings::globalSettings(); if (!globalSettings->testAttribute(QWebEngineSettings::PrivateBrowsingEnabled)) #endif |