summaryrefslogtreecommitdiffstats
path: root/src/webview/qwebviewinterface_p.h
diff options
context:
space:
mode:
authorArmin Felder <armin.felder@osalliance.com>2019-03-03 16:52:20 +0100
committerArmin Felder <armin.felder@osalliance.com>2019-05-15 11:55:54 +0000
commit0a8a69d51042b95649dbdf471acb3c96228f372e (patch)
tree53223857ac193b3d55b798981e1d766e7ee62bb2 /src/webview/qwebviewinterface_p.h
parentfac66332c76e2fc9c29aa2508a41cd9392825d25 (diff)
Add QtWebView::WebView::httpUserAgent property
The httpUserAgent property allows to get and set the User Agent. Task-number: QTBUG-68746 Change-Id: I12fb5da00b14ecba53e71c532f2c8401f8f2a009 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/webview/qwebviewinterface_p.h')
-rw-r--r--src/webview/qwebviewinterface_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webview/qwebviewinterface_p.h b/src/webview/qwebviewinterface_p.h
index a3216da..d9e566c 100644
--- a/src/webview/qwebviewinterface_p.h
+++ b/src/webview/qwebviewinterface_p.h
@@ -63,6 +63,8 @@ class QWebViewInterface
{
public:
virtual ~QWebViewInterface() {}
+ virtual QString httpUserAgent() const = 0;
+ virtual void setHttpUserAgent(const QString &httpUserAgent) = 0;
virtual QUrl url() const = 0;
virtual void setUrl(const QUrl &url) = 0;
virtual bool canGoBack() const = 0;