diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-06 19:04:58 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-20 18:15:27 +0200 |
commit | 63c45a18d37350e5455cf2869832e8b1743712a2 (patch) | |
tree | 76f775cd4f87dac796e79eece760d8b2c4ea7b9b /examples/widgets/browser/downloadmanager.cpp | |
parent | 68f3331b98d4d9996732117549cbdf4ea80cac70 (diff) | |
download | qtwebengine-63c45a18d37350e5455cf2869832e8b1743712a2.tar.gz |
demo browser: Make it link.
The ifdefs should later be removed along with the feature
implementations.
Change-Id: If73f4c4c02c00e90d6cf54c6a08bb37f43fa95bc
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'examples/widgets/browser/downloadmanager.cpp')
-rw-r--r-- | examples/widgets/browser/downloadmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/browser/downloadmanager.cpp b/examples/widgets/browser/downloadmanager.cpp index 828e325b9..6f4c6c8ad 100644 --- a/examples/widgets/browser/downloadmanager.cpp +++ b/examples/widgets/browser/downloadmanager.cpp @@ -429,10 +429,12 @@ void DownloadManager::updateRow() downloadsView->setRowHeight(row, item->minimumSizeHint().height()); bool remove = false; +#if defined(QWEBENGINESETTINGS) QWebEngineSettings *globalSettings = QWebEngineSettings::globalSettings(); if (!item->downloading() && globalSettings->testAttribute(QWebEngineSettings::PrivateBrowsingEnabled)) remove = true; +#endif if (item->downloadedSuccessfully() && removePolicy() == DownloadManager::SuccessFullDownload) { |