diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-09 12:52:37 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-15 16:28:42 +0000 |
commit | b44efd693cae93b1b8e3340ab275dfc81a473c68 (patch) | |
tree | babf68e19f9b6831fc792a6e7802210c458a3b12 /src/gui/kernel/qguiapplication.cpp | |
parent | 7ea9a6f3ad09ff058a1c117dab11f65632f248c9 (diff) |
Replace QT_NO_ACCESSIBILITY with QT_CONFIG(accessibility)
Change-Id: Iee4bd8970810be1b23bdba65a74de912401dca65
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit f53f7095044275767e389d16aabad5ff7144ec9f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 274342792f..469f5c41a7 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -30,7 +30,7 @@ #include <QtCore/qlibraryinfo.h> #include <QtCore/private/qnumeric_p.h> #include <QtDebug> -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) #include "qaccessible.h" #endif #include <qpalette.h> @@ -1853,7 +1853,7 @@ QFunctionPointer QGuiApplication::platformFunction(const QByteArray &function) */ int QGuiApplication::exec() { -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) QAccessible::setRootObject(qApp); #endif return QCoreApplication::exec(); |