diff options
author | Michael BrĂ¼ning <michael.bruning@theqtcompany.com> | 2015-01-20 16:20:42 +0100 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@theqtcompany.com> | 2015-01-23 11:52:08 +0100 |
commit | d95b9295c970401939d2779cbdc9e2a8c7965277 (patch) | |
tree | 16dacd587d16ebf84369783faeca45c5e8178ff8 /src/core/web_contents_adapter.cpp | |
parent | 82bef8eb423bc7a9f607fda95cd980a8b2816056 (diff) |
Enable building Qt WebEngine without accessiblity enabled.
This adds guards that for QT_NO_ACCESSIBILITY being not defined
around the code that uses accessibility types.
It disables the quicknanobrowser and quicktestbrowser examples
which need Qt QuickControls, which has a hard dependency to
accessibility being enabled.
Task-number: QTBUG-43305
Change-Id: Ifa39e3ce447ebc2124f52e00b29b1d7d2231035e
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index d7dfcb97c..38573d833 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -670,6 +670,7 @@ BrowserContextQt* WebContentsAdapter::browserContext() return d->browserContextAdapter->browserContext(); } +#ifndef QT_NO_ACCESSIBILITY QAccessibleInterface *WebContentsAdapter::browserAccessible() { Q_D(const WebContentsAdapter); @@ -680,6 +681,7 @@ QAccessibleInterface *WebContentsAdapter::browserAccessible() content::BrowserAccessibilityQt *accQt = static_cast<content::BrowserAccessibilityQt*>(acc); return accQt; } +#endif // QT_NO_ACCESSIBILITY void WebContentsAdapter::runJavaScript(const QString &javaScript) { |