A list view should always expose a table with a single column to accessibility tools even if the underlying model has multiple columns. Several functions need to be changed so that they only consider the model column that was set on the list view. For a list view logicalIndex() must only consider indexes for the model column. For valid indexes the logical index is simply the row because list views have neither row headers nor column headers. The column count for list views is always 1 (unless the model has no columns). The child count needs to use the column count of the accessible table instead of the column count of the underlying model. child(), cellAt(), selectedCellCount(), and selectedCells() get separate implementation for list views. Fixes: QTBUG-33786 Pick-to: 6.7 6.6 Change-Id: I18c604efa2014267bb6e3b68e403e436bdcbc4ce Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> (cherry picked from commit cd00ce4bea6f0386048bd267495433cffe83ab12) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| android_deployment_settings | ||
| gestures | ||
| languagechange | ||
| macgui | ||
| macnativeevents | ||
| macplist | ||
| networkselftest | ||
| qabstractitemmodelutils | ||
| qaccessibility | ||
| qaccessibilitylinux | ||
| qaccessibilitymac | ||
| qcomplextext | ||
| qfocusevent | ||
| qnetworkaccessmanager_and_qprogressdialog | ||
| qobjectrace | ||
| qprocess_and_guieventloop | ||
| qsharedpointer_and_qwidget | ||
| qvariant_common | ||
| sessionmanagement_macos | ||
| toolsupport | ||
| xkbkeyboard | ||
| CMakeLists.txt | ||