From f53f7095044275767e389d16aabad5ff7144ec9f Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 9 Jun 2022 12:52:37 +0200 Subject: Replace QT_NO_ACCESSIBILITY with QT_CONFIG(accessibility) Pick-to: 6.4 Change-Id: Iee4bd8970810be1b23bdba65a74de912401dca65 Reviewed-by: Qt CI Bot Reviewed-by: Marc Mutz --- src/gui/kernel/qwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/kernel/qwindow.cpp') diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 72c13c5f95..437cd931b5 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -18,7 +18,7 @@ #include "qwindow_p.h" #include "qguiapplication_p.h" -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) # include "qaccessible.h" #endif #include "qhighdpiscaling_p.h" @@ -2438,7 +2438,7 @@ bool QWindow::event(QEvent *ev) case QEvent::FocusIn: { focusInEvent(static_cast(ev)); -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) QAccessible::State state; state.active = true; QAccessibleStateChangeEvent event(this, state); @@ -2448,7 +2448,7 @@ bool QWindow::event(QEvent *ev) case QEvent::FocusOut: { focusOutEvent(static_cast(ev)); -#ifndef QT_NO_ACCESSIBILITY +#if QT_CONFIG(accessibility) QAccessible::State state; state.active = true; QAccessibleStateChangeEvent event(this, state); -- cgit v1.2.3