aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qmlcompiler/tutorials/helloworld/chapter3
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2024-06-06 10:51:13 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2024-06-11 22:53:08 +0200
commitf673e8328c488fb337b69737d29a4846f2ec3eb7 (patch)
treedb57508ad760c87965e9084d6e80d99a577d577b /examples/qmlcompiler/tutorials/helloworld/chapter3
parent180f13fdfd7e7c83fa4d0427a7b7068375bf15e0 (diff)
SelectionRectangle: clear selection from TableViewHEADdev
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.8 6.7 6.6 Task-number: QTBUG-125867 Change-Id: Iaa3c6414d916773f62de4faec5a2fcb7b2f3e6d0 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'examples/qmlcompiler/tutorials/helloworld/chapter3')
0 files changed, 0 insertions, 0 deletions