diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-10-11 16:18:35 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-10-12 09:07:54 +0200 |
commit | 826765f654e43034929ff6fbc975ab0ab5d6922a (patch) | |
tree | 3c5bec62d9e46fba9fa4b8fa45c67a281b59170e /src/network/kernel | |
parent | 9a772306854bf0ca2f0c16699744136530656f43 (diff) |
Select a single range of cells in QTableView, away from merged cells
- when there is no intersection between the current selection and the
spans collection, get ranges for all cells, just as if no span exists
- when there is an intersection between the current selection and the
spans collection, get separate ranges for each cell (as before)
This fixes the regular case of selecting multiple non-spanned cells
after some cells are merged (get a single range for all cells instead of
separate range for each cell). However, when selecting together a group
of spanned and non-spanned cells, you still get a separate range for
each cell. But this is normal behavior in similar applications; for
example in LibreOffice, you cannot select and merge spanned and
non-spanned cells: an error dialog tells you that it's not allowed.
Done-with: Christos Kokkinidis
Pick-to: 6.2
Fixes: QTBUG-255
Change-Id: Ic38f9a064a1f499825e7f750668013fc2dc564ba
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/network/kernel')
0 files changed, 0 insertions, 0 deletions