diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2022-11-01 13:13:14 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2023-01-20 09:45:25 +0100 |
commit | 54f6159d4dc2b26400b8b05de9a6a443d8da4575 (patch) | |
tree | 8c38d20d11c3cf8aed2f5c1bbc1b2db12070c3a9 /tests/auto/qml/qqmlerror | |
parent | d09a0778e1c243be8931c3bec95c8970ace95f7b (diff) |
QQuickTableView: reposition selection handles whenever TableView updates the layout
After TableView got support for resizable rows and columns, a
side effect is that any overlay, like the selection handles, will
need to be repositioned when rows and columns are resized.
Currenly the selection handles will instead stay put at the
initial location.
This patch will make sure that SelectionRectangle listens to
the layoutChanged() signal from TableView, and reposition the
handles.
Because the current selection rectangle implementation in
TableView didn't take row and column resizing into account
either, the logic that calculates the rectangle is also
changed. Rather than storing the selection rectangle after
each mouse drag, we now calculate the exact (and updated)
rectangle when queried instead.
Fixes: QTBUG-109448
Pick-to: 6.5
Change-Id: I80171f992bea1035c1410ede384a2d847ee3aa46
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlerror')
0 files changed, 0 insertions, 0 deletions