qt5base-lts/tests/auto/other
Volker Hilsheimer c59b34b8cf QAccessible: consistently respect rootIndex of item views
Accessibility implementations rely on correct information about the
model dimensions when operating on item views. An item view that has a
root index set needs to report it's size based on the root index, rather
than for the view's model directly.

Pass the rootIndex to all calls to QAbstractItemModel::column/rowCount.
Refactor the code to avoid excessive dereferencing of a QPointer, apply
const and fix/improve coding style in touched lines.

Emit a ModelReset notification when the root index changes, or (in the
case of QListView) when the model column changes.

Split long Q_ASSERTs into multiple lines to be able to better trace the
exact reason for an assertion, and replace the assert with an early
return of nil when it's plausible that a cached cell is no longer part
of the view (i.e. because the root index changed).

Add a test case that verifies that changing the root index changes the
dimension of the view as reported through the accessibility interface.

Pick-to: 6.6 6.5
Fixes: QTBUG-114423
Change-Id: I7897b79b2e1d10c789cc866b7f5c5dabdabe6770
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-09-01 18:03:29 +02:00
..
android_deployment_settings Add test for the qt6_android_generate_deployment_settings CMake command 2023-08-23 16:21:57 +02:00
gestures tst_gestures: clean-up the BLACKLIST 2023-08-22 15:19:50 +00:00
languagechange CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
macgui Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
macnativeevents CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
macplist CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
networkselftest CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qabstractitemmodelutils DynamicTreeModel test helper: port away from Q_FOREACH 2023-08-08 17:44:56 +00:00
qaccessibility QAccessible: consistently respect rootIndex of item views 2023-09-01 18:03:29 +02:00
qaccessibilitylinux tst_QAccessibilityLinux: port away from Q_FOREACH 2023-08-09 23:57:21 +02:00
qaccessibilitymac CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qcomplextext CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qfocusevent CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkaccessmanager_and_qprogressdialog CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qobjectrace CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
qprocess_and_guieventloop CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qsharedpointer_and_qwidget CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qvariant_common Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sessionmanagement_macos Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
toolsupport CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
xkbkeyboard CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt Disable android_deployment_settings test for non-standalone scenario 2023-08-25 18:37:23 +02:00