diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-01-29 13:37:12 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-02-12 14:35:03 +0000 |
commit | 58dcd497ad8a0138a77a58001bc8adb3fd62fd73 (patch) | |
tree | 9f7802c0ae3e073b4cb2e9a33b74a8947dfefd16 /src | |
parent | 20ffcf870ec0963b97d9d44c12b4fd2aa4a11dc9 (diff) |
Correct documentation for storage paths
Udpdate docs and profile unit test for storage paths.
Change-Id: I646a33571ad8458af4efcddf310489cdde3a4606
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index 737326c24..cf4e0f41c 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -308,8 +308,11 @@ bool QWebEngineProfile::isOffTheRecord() const Persistent data includes persistent cookies, HTML5 local storage, and visited links. - By default, this is below QStandardPaths::writableLocation() in a storage name specific - directory. + By default, this is below QStandardPaths::DataLocation in a QtWebengine/StorageName specific + subdirectory. + + \note Use QStandardPaths::writableLocation(QStandardPaths::DataLocation) + to obtain the QStandardPaths::DataLocation path. \sa setPersistentStoragePath(), storageName(), QStandardPaths::writableLocation() */ @@ -335,8 +338,11 @@ void QWebEngineProfile::setPersistentStoragePath(const QString &path) /*! Returns the path used for caches. - By default, this is below QStandardPaths::writableLocation() in a storage name specific - directory. + By default, this is below StandardPaths::CacheLocation in a QtWebengine/StorageName specific + subdirectory. + + \note Use QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + to obtain the QStandardPaths::CacheLocation path. \sa setCachePath(), storageName(), QStandardPaths::writableLocation() */ |