qt6-bb10/tests/auto/widgets/itemviews
Sebastian Beckmann f11e5435c7 QAbstractItemView: Don't unselect on click on empty area in SingleSelect
dfb4697e4a made a change to selection
behavior that resulted in a regression where clicking on an item view
but not on an item would cause the current item to get unselected.
Changes the behavior to not update in this case.

Added a new test that specifially checks for this scenario and ensures
that the current item is still selected, even after the user clicks on
empty area.

Fixes: QTBUG-105870
Pick-to: 6.2 6.4 6.5
Change-Id: I191c3878819b99897083039fba0ab43908da5429
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-02-11 12:47:24 +01:00
..
qabstractitemview QAbstractItemView: Don't unselect on click on empty area in SingleSelect 2023-02-11 12:47:24 +01:00
qcolumnview Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qdatawidgetmapper Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qfileiconprovider Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qheaderview QHeaderView test: Remove unused variables 2022-12-12 20:10:11 +01:00
qitemdelegate Adapt to QTimeZone replacing Qt::TimeSpec usage 2022-12-10 06:39:44 +01:00
qitemeditorfactory Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qitemview Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qlistview QListView: Prevent infinite loop when wrapping text of item with null-icon 2023-01-04 13:42:06 +01:00
qlistwidget Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtableview Fix two variables' "may be used uninitialized" compiler warnings 2023-01-22 21:19:36 +02:00
qtablewidget Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtreeview Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtreewidget Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtreewidgetitemiterator Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00