Skip to content
Snippets Groups Projects
Commit bdd4ca71 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: fix dragging multiple items in KeyNavigableTableView

This already works fine in other places, I must have missed
updating this in the last iteration.

Brief explanation of how this works:

- Tap handler should set the focus, even if the drag handler
  takes over. This means that the focus should be set in
  both `canceled()` and `singleTapped()` handlers. This
  merely corresponds to `pressed()` signal of mouse area.
- Tap handler should not update the selection if the drag
  handler takes over. This means that the selection should
  not be updated upon `canceled()` but `singleTapped()`
- Drag handler must update the selection when it becomes
  active, as long as the dragged item is not already
  selected.
parent ac60f455
No related branches found
No related tags found
1 merge request!5667qml: fix multiple items can not be dragged in KeyNavigableTableView regression
Pipeline #494494 passed with stage
in 41 minutes and 4 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment