Curing my _Commentitis_.

1.3
Ivan De Marino 2011-06-25 00:16:57 +01:00
parent 3ef660466d
commit 99310e2c47
1 changed files with 1 additions and 5 deletions

View File

@ -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