6#if QT_CONFIG(accessibility)
11QIOSPlatformAccessibility::QIOSPlatformAccessibility()
14QIOSPlatformAccessibility::~QIOSPlatformAccessibility()
18void invalidateCache(QAccessibleInterface *iface)
20 if (!iface || !
iface->isValid()) {
29 if (
win &&
win->handle()) {
31 window->clearAccessibleCache();
37void QIOSPlatformAccessibility::notifyAccessibilityUpdate(QAccessibleEvent *
event)
39 auto *accessibleInterface =
event->accessibleInterface();
40 if (!
isActive() || !accessibleInterface)
42 switch (
event->type()) {
43 case QAccessible::ObjectCreated:
44 case QAccessible::ObjectShow:
45 case QAccessible::ObjectHide:
46 case QAccessible::ObjectDestroyed:
47 invalidateCache(accessibleInterface);
48 switch (accessibleInterface->role()) {
49 case QAccessible::Window:
50 case QAccessible::Dialog:
52 UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
56 UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil);
static QWindowList topLevelWindows()
Returns a list of the top-level windows in the application.
constexpr QBindableInterface iface
QT_END_NAMESPACE typedef QT_PREPEND_NAMESPACE(quintptr) WId