diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-09-11 11:09:40 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 11:28:22 +0200 |
commit | e39d629ebe9044b505ac35eaae3ab9c214d452a2 (patch) | |
tree | 0e7ba800a55ccb29f791ad7e9653370a739bb306 /src/corelib | |
parent | af61b7312e2701bc89bdb78d6a8d8984c59c673f (diff) |
Include hidden headers in trees and tables consistently
There was a disagreement between the a11y plugin and QTreeView
whether the horizontal header should have been exposed or not.
When the header was hidden, this resulted in that we sent an event
with a child id that was wrong, or in worst case higher than
QAI::childrenCount(). This was the reason we got the warning
output as described in the task.
With this commit, we consistently *expose* hidden headers both for
QTreeView and QTableView, but ensure that their state().invisible is
set to true instead.
This makes it consistent with how hidden cells are exposed.
This also fixes a bug in QTableViewPrivate::accessibleTable2Index
where we always added 1 to the index, which was spotted while
writing the test.
Task-number: QTBUG-33247
Change-Id: Ifd1f83d56296dd071424fdb81fce7628bc24fe0a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions