qt5base-lts/tests/auto/widgets
Volker Hilsheimer 557dcd8a87 QAbstractItemView: don't start editing on Ctrl-Click
Amends 17c1ebf8bf, after which dragEnabled
item views toggled selection on click rather than on press. If the edit
trigger included SelectedClicked at the same time, then Ctrl-Clicking a
selected item would start editing the item, instead of toggling
selection.

Fix this by ignoring clicks with modifier when evaluating whether
editing should start.

Extend the mouseSelection test case by including a column for the
editTrigger, and cover the respective combinations.

Fixes: QTBUG-111131
Pick-to: 6.5 6.4 6.2
Change-Id: I9605f9b3d5a49e292551a34c3c4c7a5f9ecb2a89
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-02-16 15:28:18 +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 start editing on Ctrl-Click 2023-02-16 15:28:18 +01:00
kernel Fix connections in QWidgetWindow 2023-02-15 15:12:12 +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 Fix QStatusBar::removeWidget to hide the right widget 2023-02-16 12:40:07 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00