summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-06-14 11:46:40 +0200
committerKai Koehne <kai.koehne@qt.io>2016-06-14 11:33:12 +0000
commit712dad5b9aa2d08ac29dec1bd380fdd08d9ffe3f (patch)
tree58044453b0ff4d6c9257d60e1720e5a4355e5b00
parentca6762abde85fe3104ec4f064b85319474ba2deb (diff)
Expose WebEngineProfile.clearHttpCache()
The method is documented to be available in the QML API, but hasn't been exposed so far. Change-Id: I6f2b8ae132dc10718f1b9181eefeef5c2f2eeed6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/webengine/api/qquickwebengineprofile.h2
-rw-r--r--src/webengine/plugin/plugins.qmltypes1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/webengine/api/qquickwebengineprofile.h b/src/webengine/api/qquickwebengineprofile.h
index 9240132b2..dc5aa7df8 100644
--- a/src/webengine/api/qquickwebengineprofile.h
+++ b/src/webengine/api/qquickwebengineprofile.h
@@ -127,7 +127,7 @@ public:
void removeUrlSchemeHandler(QWebEngineUrlSchemeHandler *);
void removeAllUrlSchemeHandlers();
- void clearHttpCache();
+ Q_REVISION(2) Q_INVOKABLE void clearHttpCache();
static QQuickWebEngineProfile *defaultProfile();
diff --git a/src/webengine/plugin/plugins.qmltypes b/src/webengine/plugin/plugins.qmltypes
index fa35b141e..23ba77235 100644
--- a/src/webengine/plugin/plugins.qmltypes
+++ b/src/webengine/plugin/plugins.qmltypes
@@ -225,6 +225,7 @@ Module {
name: "downloadFinished"
Parameter { name: "download"; type: "QQuickWebEngineDownloadItem"; isPointer: true }
}
+ Method { name: "clearHttpCache"; revision: 2 }
}
Component {
name: "QQuickWebEngineScript"