qt6-bb10/tests/auto/other
Ingo Klöcker 09548cb710 Fix accessibility of list views with underlying multi-column model
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>
2024-06-26 22:52:30 +00:00
..
android_deployment_settings Android:CMake: Add QT_ANDROID_PACKAGE_NAME property 2024-05-16 16:40:55 +03:00
gestures Change license for tests files 2024-02-04 09:56:42 +01:00
languagechange Change license for tests files 2024-02-04 09:56:42 +01:00
macgui Change license for tests files 2024-02-04 09:56:42 +01:00
macnativeevents Change license for tests files 2024-02-04 09:56:42 +01:00
macplist Change license for tests files 2024-02-04 09:56:42 +01:00
networkselftest Change license for tests files 2024-02-04 09:56:42 +01:00
qabstractitemmodelutils Change license for tests files 2024-02-04 09:56:42 +01:00
qaccessibility Fix accessibility of list views with underlying multi-column model 2024-06-26 22:52:30 +00:00
qaccessibilitylinux Change license for tests files 2024-02-04 09:56:42 +01:00
qaccessibilitymac Change license for tests files 2024-02-04 09:56:42 +01:00
qcomplextext Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
qfocusevent tst_QFocusEvent::checkReason_ActiveWindow() remove setActiveWindow() 2024-04-23 09:26:08 +02:00
qnetworkaccessmanager_and_qprogressdialog Change license for tests files 2024-02-04 09:56:42 +01:00
qobjectrace Change license for tests files 2024-02-04 09:56:42 +01:00
qprocess_and_guieventloop Change license for tests files 2024-02-04 09:56:42 +01:00
qsharedpointer_and_qwidget Change license for tests files 2024-02-04 09:56:42 +01:00
qvariant_common Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
sessionmanagement_macos Change license for tests files 2024-02-04 09:56:42 +01:00
toolsupport tst_toolsupport: make the i386 case really about i386 2024-03-06 11:09:16 +01:00
xkbkeyboard Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt CMake: Remove mention of tests/auto/other/atwrapper 2024-05-11 18:32:29 +02:00