From 99310e2c4704564970a040ac36bddcee981b417f Mon Sep 17 00:00:00 2001 From: Ivan De Marino Date: Sat, 25 Jun 2011 00:16:57 +0100 Subject: [PATCH] Curing my _Commentitis_. --- src/webpage.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/webpage.cpp b/src/webpage.cpp index 79a8f338..561e15d1 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -117,27 +117,23 @@ WebPage::WebPage(QObject *parent) m_mainFrame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); m_mainFrame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); - // Offline Storage Database m_webPage->settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true); m_webPage->settings()->setOfflineStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation)); #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) - // OfflineWebApplicationCacheEnabled m_webPage->settings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true); m_webPage->settings()->setOfflineWebApplicationCachePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation)); #endif #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) - // Frame Flattening m_webPage->settings()->setAttribute(QWebSettings::FrameFlatteningEnabled, true); #endif #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) - // Local Storage m_webPage->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true); m_webPage->settings()->setLocalStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation)); #else - // Local Storage Database (deprecated /superseded in Qt >= 4.6.0) + // Local Storage Database has been deprecated/superseded in Qt >= 4.6.0 m_webPage->settings()->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, true); #endif