diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2020-04-28 15:17:00 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2020-04-29 17:31:06 +0200 |
commit | 685430b66ab2830d5e0e5ebafc17294ff1ce1f48 (patch) | |
tree | 3959ce32fef1e6140d532322a2604463ef663241 /src/core/web_engine_context.h | |
parent | 976dc1626e9847094a0fa0d015077e3af0b141e3 (diff) |
Fix -no-accessibility build
WebEngine is built without -DQT_NO_ACCESSIBILITY. qtgui-config.h defines
it but accessibility_activation_observer.h didn't include it if
accessibility was disabled.
Also replace all occurrences of QT_NO_ACCESSIBILITY by
QT_CONFIG(accessibility) in core.
Change-Id: I5e5e14885e04cd542ec9e52d770f7070e8edbf8b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_engine_context.h')
-rw-r--r-- | src/core/web_engine_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h index ac0536596..6cbd5c8e5 100644 --- a/src/core/web_engine_context.h +++ b/src/core/web_engine_context.h @@ -46,6 +46,7 @@ #include "base/memory/ref_counted.h" #include "base/values.h" +#include <QtGui/qtgui-config.h> #include <QVector> namespace base { @@ -142,7 +143,7 @@ private: std::unique_ptr<ProfileAdapter> m_defaultProfileAdapter; std::unique_ptr<DevToolsServerQt> m_devtoolsServer; QVector<ProfileAdapter*> m_profileAdapters; -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) std::unique_ptr<AccessibilityActivationObserver> m_accessibilityActivationObserver; #endif |