diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2016-01-26 06:29:48 -0800 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2016-01-27 23:25:20 +0000 |
commit | d86feb3afcaacd57e3d661b969db173dea075f96 (patch) | |
tree | e4b58591849936890fc866c5ec848110efa6bd22 /src/webengine/api/qquickwebengineprofile.cpp | |
parent | 2d3a5c7a4e78cdbd973416ea8fdaea6e2fb4ddb7 (diff) |
Extend HttpCacheType with NoCache option
Add option to disable cache with passing NULL as cache backend.
It behaves the same way as using HttpCache::set_mode(DISABLE), but
saves some memory without instantiating backend factory.
Change-Id: I1565cc773eda21a6bc73eebe14ab8046252a7755
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineprofile.cpp')
-rw-r--r-- | src/webengine/api/qquickwebengineprofile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineprofile.cpp b/src/webengine/api/qquickwebengineprofile.cpp index 523121b6f..7800d1bb0 100644 --- a/src/webengine/api/qquickwebengineprofile.cpp +++ b/src/webengine/api/qquickwebengineprofile.cpp @@ -448,6 +448,8 @@ void QQuickWebEngineProfile::setHttpUserAgent(const QString &userAgent) no persistentStoragePath is available. \value DiskHttpCache Uses a disk cache. This is the default value. + \value NoCache + Disables caching. */ /*! |