Make it compile with Qt 4.6.

1.1
Ariya Hidayat 2011-01-29 19:13:19 -08:00
parent 6e4aeb1077
commit 4baf0269ba
1 changed files with 2 additions and 2 deletions

View File

@ -164,9 +164,9 @@ Phantom::Phantom(QObject *parent)
m_page.settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
m_page.settings()->setOfflineStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
#if QT_VERSION < QT_VERSION_CHECK(4, 6, 0)
m_page.settings()->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, true);
#else
#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
m_page.settings()->setAttribute(QWebSettings::FrameFlatteningEnabled, true);
m_page.settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
m_page.settings()->setLocalStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));