]> cloud.milkyroute.net Git - dolphin.git/commit
Fix accessibility ancestor tree
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 17 Jul 2023 14:13:51 +0000 (17:13 +0300)
committerFelix Ernst <felixernst@kde.org>
Thu, 5 Oct 2023 12:09:25 +0000 (12:09 +0000)
commit549fad2daeeccac53b88b4777dcc9effbc2110e5
treecb1783e7d0695eb18aa4192a4e0632e3b80b5bc8
parent7a6cba7f51068a367c2dcd1908d1f3f329e8d50f
Fix accessibility ancestor tree

Before this commit, KItemListViewAccessible would always return
nullptr as its parent. This meant that accessibility software would
have to guess to which window/hierarchy the KItemListView belongs
to. Guessing shouldn't be necessary here.

This commit makes sure that the KItemListView always returns a
sensible parent in the accessible hierarchy. It does so by
explicitly setting the accessible parent for every KItemListView
after construction in the DolphinView contructor. Since
KItemListView now always knows about its accessible parent, the
accessibleInterfaceFactory can always ask the KItemListView for
that information when constructing the QAccessibleInterfaces.

Fixes https://invent.kde.org/system/dolphin/-/issues/47.
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/kitemviews/kitemlistviewaccessible.cpp
src/kitemviews/kitemlistviewaccessible.h
src/tests/kitemlistcontrollerexpandtest.cpp
src/tests/kitemlistcontrollertest.cpp
src/views/dolphinview.cpp