Add QAccessible::LocationChanged to QWidget

Issue the event when geometry has changed to match QML.

Task-number: QTBUG-115926
Pick-to: 6.9 6.8
Change-Id: I31d87a2b07c1cbdb31063bdbf146f21310103798
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Even Oscar Andersen 2025-03-07 12:32:03 +01:00 committed by Volker Hilsheimer
parent df96b28f65
commit c1fba2d4ee

View File

@ -7339,6 +7339,12 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove)
q->setAttribute(Qt::WA_PendingResizeEvent, true);
}
#if QT_CONFIG(accessibility)
if (QAccessible::isActive() && q->isVisible()) {
QAccessibleEvent event(q, QAccessible::LocationChanged);
QAccessible::updateAccessibility(&event);
}
#endif
}
/*!