Permalink
Browse files

Enabled offline application storage

  • Loading branch information...
1 parent 59a0bde commit 021f2da28dba5e85a1a47540960171fca8fcc9e6 Eric Pearson committed Oct 18, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 Ripple/ripple.cpp
View
@@ -47,11 +47,15 @@ void Ripple::init(void)
setAttribute(Qt::WA_DeleteOnClose);
webViewInternal = new QtGraphicsStageWebView(this);
- webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
- webViewInternal->qtStageWebView()->settings()->enablePersistentStorage(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
+ webViewInternal->qtStageWebView()->settings()->enablePersistentStorage(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setOfflineStoragePath(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setOfflineWebApplicationCachePath(_config->localStoragePath());
webViewInternal->qtStageWebView()->settings()->setOfflineStorageDefaultQuota(512000000);
webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);
webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls, true);
+ webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls, true);
+ webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls, true);
#if QT_VERSION >= 0x040800
webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::AcceleratedCompositingEnabled, true);
#endif

0 comments on commit 021f2da

Please sign in to comment.