diff options
author | Tamas Zakor <ztamas@inf.u-szeged.hu> | 2018-11-26 08:34:08 +0100 |
---|---|---|
committer | Zakor Tamas <ztamas@inf.u-szeged.hu> | 2019-01-30 14:03:31 +0000 |
commit | 46d68dcf726e6ba385a91cbeb5db131c0d1d0e9d (patch) | |
tree | 8050bf160f77c01c4e3db2ce8d4a90eaf3ad129a /src/core/profile_adapter.h | |
parent | e08c5e162559737672ae90b12dde369dc09c21f8 (diff) |
Add API to set default download path
Add functions and property to set the default download
location in QWebEngineProfile and QQuickWebEngineProfile.
Also add new test for check uniquifying download filename.
Update plugins.qmltypes to 1.9
[ChangeLog][Profile][QtWebEngine][QtWebEngineWidgets]
Add functions and property to set the default download
location in QWebEngineProfile and QQuickWebEngineProfile.
Task-number: QTBUG-66262
Task-number: QTBUG-72176
Change-Id: I7fa93b66c326766b176aec24d453dd75602b91de
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/profile_adapter.h')
-rw-r--r-- | src/core/profile_adapter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/profile_adapter.h b/src/core/profile_adapter.h index 9849d2788..3b1b9bc91 100644 --- a/src/core/profile_adapter.h +++ b/src/core/profile_adapter.h @@ -113,6 +113,9 @@ public: QString dataPath() const; void setDataPath(const QString &path); + QString downloadPath() const { return m_downloadPath; } + void setDownloadPath(const QString &path); + QString cachePath() const; void setCachePath(const QString &path); @@ -211,6 +214,7 @@ private: QPointer<QWebEngineUrlRequestInterceptor> m_requestInterceptor; QString m_dataPath; + QString m_downloadPath; QString m_cachePath; QString m_httpUserAgent; HttpCacheType m_httpCacheType; |