diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-09 12:56:36 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-09 12:56:36 +0200 |
commit | 28d5a16ffb85550a7dc19e7fe8b945dc35d8cb77 (patch) | |
tree | 87f682f2aaa43205452525be10d9446d4590d51c /lib/web/webprofile.cpp | |
parent | Add commit template (diff) | |
download | smolbote-28d5a16ffb85550a7dc19e7fe8b945dc35d8cb77.tar.xz |
WebProfile: save httpCacheType and persistentCookiesPolicy
Diffstat (limited to 'lib/web/webprofile.cpp')
-rw-r--r-- | lib/web/webprofile.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/web/webprofile.cpp b/lib/web/webprofile.cpp index 4d31376..295f639 100644 --- a/lib/web/webprofile.cpp +++ b/lib/web/webprofile.cpp @@ -104,6 +104,12 @@ void WebProfile::setPersistentStoragePath(const QString &path) emit propertyChanged("persistentStoragePath", path); } +void WebProfile::setPersistentCookiesPolicy(int policy) +{ + QWebEngineProfile::setPersistentCookiesPolicy(static_cast<QWebEngineProfile::PersistentCookiesPolicy>(policy)); + emit propertyChanged("persistentCookiesPolicy", policy); +} + void WebProfile::setHttpAcceptLanguage(const QString &httpAcceptLanguage) { QWebEngineProfile::setHttpAcceptLanguage(httpAcceptLanguage); @@ -116,6 +122,13 @@ void WebProfile::setHttpCacheMaximumSize(int maxSize) emit propertyChanged("httpCacheMaximumSize", maxSize); } +void WebProfile::setHttpCacheType(int type) +{ + qDebug("set httpCacheType to %i", type); + QWebEngineProfile::setHttpCacheType(static_cast<QWebEngineProfile::HttpCacheType>(type)); + emit propertyChanged("httpCacheType", type); +} + void WebProfile::setHttpUserAgent(const QString &userAgent) { QWebEngineProfile::setHttpUserAgent(userAgent); |