Only define "accessibility" feature once

The "accessibility" feature was defined globally for qtbase, but also
in src/gui. The definitions could end up with different values.

Change-Id: I1a932c3c04a5fc26b9f67eb4f5ff02e524f380e7
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Paul Olav Tvete 2017-02-14 13:31:37 +01:00
parent 5f80a7956e
commit 7057b19b89
3 changed files with 10 additions and 14 deletions

View File

@ -56,7 +56,6 @@
"android-sdk": "string",
"android-toolchain-version": "string",
"accessibility": "boolean",
"android-style-assets": "boolean",
"appstore-compliant": "boolean",
"avx": "boolean",
@ -915,10 +914,6 @@
"condition": "config.qnx && tests.stack_protector",
"output": [ "publicQtConfig" ]
},
"accessibility": {
"label": "Accessibility",
"output": [ "publicFeature", "feature" ]
},
"system-zlib": {
"label": "Using system zlib",
"condition": "libs.zlib",
@ -1080,11 +1075,6 @@ or compile needed modules into the library."
"message": "Qt is using double for qreal on this system. This is binary-incompatible against Qt 5.1.
Configure with '-qreal float' to create a build that is binary-compatible with 5.1."
},
{
"type": "warning",
"condition": "!features.accessibility",
"message": "Accessibility disabled. This configuration of Qt is unsupported."
},
{
"type": "error",
"condition": "!features.stl",
@ -1191,7 +1181,6 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5
}, {
"section": "Support enabled for",
"entries": [
"accessibility",
"pkg-config",
"qml-debug",
"libudev",

View File

@ -7,6 +7,7 @@
"commandline": {
"options": {
"accessibility": "boolean",
"angle": "boolean",
"direct2d": "boolean",
"directfb": "boolean",
@ -1042,6 +1043,11 @@ Specify -opengl desktop to use regular OpenGL."
"message": "The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform."
},
{
"type": "warning",
"condition": "!features.accessibility",
"message": "Accessibility disabled. This configuration of Qt is unsupported."
}
],
@ -1049,6 +1055,7 @@ QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your pla
{
"section": "Qt Gui",
"entries": [
"accessibility",
"freetype",
"system-freetype",
"harfbuzz",

View File

@ -47,8 +47,6 @@
#include <QtCore/qglobal.h>
#ifndef QT_NO_ACCESSIBILITY
#define QVERIFY_EVENT(event) \
QVERIFY(QTestAccessibility::verifyEvent(event))
@ -59,6 +57,8 @@
#include <QtTest/qtest_global.h>
#include <QtTest/qtestsystem.h>
#if QT_CONFIG(accessibility)
QT_BEGIN_NAMESPACE
@ -294,5 +294,5 @@ private:
QT_END_NAMESPACE
#endif // QT_NO_ACCESSIBILITY
#endif // QT_CONFIG(accessibility)
#endif // QTESTACCESSIBLE_H