From 58dcd497ad8a0138a77a58001bc8adb3fd62fd73 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Mon, 29 Jan 2018 13:37:12 +0100 Subject: Correct documentation for storage paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Udpdate docs and profile unit test for storage paths. Change-Id: I646a33571ad8458af4efcddf310489cdde3a4606 Reviewed-by: Leena Miettinen Reviewed-by: Michael BrĂ¼ning --- src/webenginewidgets/api/qwebengineprofile.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp') 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() */ -- cgit v1.2.3