Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a11y: Remember QTreeView's a11y child interfaces
In the same way that QAccessibleTable::child already does, also make use of the childToId hash in QAccessibleTree::child to remember and reuse previously created child interfaces instead of creating new ones for the same index every time the method gets called. When items in the tree view change, QTreeViewPrivate::updateAccessibility already sends a QAccessibleTableModelChangeEvent event of type QAccessibleTableModelChangeEvent::ModelReset, which ensures that the then outdated cache is cleared in the base class's QAccessibleTable::modelChange method. This addresses an old FIXME comment added in 2013 commit b2ec0da and fixes the issue reported in QTBUG-128558. Fixes: QTBUG-128558 Change-Id: Ia2a518ac26f3c9b9ba8ab1870bb656c8e9014a77 Reviewed-by: Volker Hilsheimer <[email protected]> (cherry picked from commit 3cfabf9) Reviewed-by: Qt Cherry-pick Bot <[email protected]> (cherry picked from commit 77b8cd0)
- Loading branch information