From e6b846f3800eed35d31a45122f7f8c3215dc38ef Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Wed, 15 Jan 2014 19:00:59 +0100 Subject: Implement QWebEnginePage::setHtml and setContent Load a generated data: URL to carry the data. This is not as efficient as it could be but the behavior matches and this should be fine for now. Change-Id: I26ad2e5976025a3044fb03f066074ce6dd34e575 Reviewed-by: Pierre Rossi --- src/core/web_contents_adapter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/web_contents_adapter.h') diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h index 1f00b4b12..c4c25c8a5 100644 --- a/src/core/web_contents_adapter.h +++ b/src/core/web_contents_adapter.h @@ -74,6 +74,7 @@ public: void stop(); void reload(); void load(const QUrl&); + void setContent(const QByteArray &data, const QString &mimeType, const QUrl &baseUrl); QUrl activeUrl() const; QString pageTitle() const; -- cgit v1.2.3