qt5base-lts/tests/auto/widgets
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
..
dialogs Don't override QDialog::setVisible() to implement native dialogs 2023-01-09 14:14:53 +01:00
effects Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
graphicsview QGraphicsView: fix jumping graphic items when dragging out of view 2022-11-26 16:07:15 +02:00
itemviews QAbstractItemView: Don't unselect on click on empty area in SingleSelect 2023-02-11 12:47:24 +01:00
kernel Unblacklist stable tst_QWidgetRepaintManager 2023-02-03 18:44:55 +01:00
styles Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
util Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
widgets Add right and middle mouse button to tst_QLabel::mouseEventPropagation 2023-02-01 17:41:58 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00