From c6f323f4d4d4ea63b596f3877de17d1dbc6ba176 Mon Sep 17 00:00:00 2001 From: Mike Achtelik Date: Sun, 27 Mar 2022 11:26:55 +0200 Subject: [PATCH] iOS A11Y: Do not add children of invisible parent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevent children from invisible parents from showing up in the a11y hierarchy. This fixes a problem on iOS which e.g. always adds hyperlink children of QML Text items, even if the Item itself is invisible. Pick-to: 6.3 6.2 Change-Id: I88a6f08956b5fe78cb789a08f2078f96d7aa263c Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/ios/quiview_accessibility.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/ios/quiview_accessibility.mm b/src/plugins/platforms/ios/quiview_accessibility.mm index 9a103509cc..9b76a8328a 100644 --- a/src/plugins/platforms/ios/quiview_accessibility.mm +++ b/src/plugins/platforms/ios/quiview_accessibility.mm @@ -56,7 +56,7 @@ - (void)createAccessibleContainer:(QAccessibleInterface *)iface { - if (!iface) + if (!iface || iface->state().invisible) return; [self createAccessibleElement: iface];