diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2024-06-06 10:51:13 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-06-13 08:56:54 +0000 |
commit | c29486b3ec899ae9fd06967c282697c11699cfef (patch) | |
tree | 8bb8e038cbac864e1fe29befc27b532a379c2143 /examples/quickcontrols/wearable/doc | |
parent | adde3459dbc2301dc2828ea44628a9f499e90119 (diff) |
SelectionRectangle: clear selection from TableView6.7
If the TableView delegate has a TapHandler, it will shadow
the TapHandler in TableView that normally clears the old
selection when a new drag selection begins. This means
that the SelectionRectangle will keep on extending the
current selection, even when no modifiers are being held.
This patch will make the selection logic more robust
by leaving it to QQuickTableView::startSelection() to
clear (or not clear) the existing selection. Then we
don't depend on the TapHandler in TableView to be called,
and we can also simplify SelectionRectangle a bit.
Pick-to: 6.6
Task-number: QTBUG-125867
Change-Id: Iaa3c6414d916773f62de4faec5a2fcb7b2f3e6d0
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
(cherry picked from commit f673e8328c488fb337b69737d29a4846f2ec3eb7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 4def06bd5f0634469fc2c0cfc7055295f30e67e2)
Diffstat (limited to 'examples/quickcontrols/wearable/doc')
0 files changed, 0 insertions, 0 deletions