diff options
| author | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2025-01-23 17:08:22 +0100 |
|---|---|---|
| committer | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2025-01-24 15:57:33 +0100 |
| commit | 89dc227e7cf838b69314f87b4c7e6e00c87904fa (patch) | |
| tree | b96fb4230c706daf8411cb08bfeb3fb6da839aed /src/qmlcompiler/qqmljsfunctioninitializer.cpp | |
| parent | 80e17e4bee2a78f5d485c73dd2af5437919be175 (diff) | |
Spreadsheets: Prevent data loss when dropping cells in invalid locations
Before this patch, dropping selected cells into an invalid place in the
TableView could result in partial data loss. This occurred because some
of the selected data couldn't be set to the new cells, and the data was
copied at the start of the drag operation.
This patch improves the drag-and-drop functionality by:
- Checking the possibility of copying selected data to target cells
before the drop occurs (and during dragging).
- Avoiding highlighting of invalid target cells during the drag
operation.
Task-number: QTBUG-125767
Change-Id: Iff1058c2239f4bad3430f4f01ccea619f1ac8773
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsfunctioninitializer.cpp')
0 files changed, 0 insertions, 0 deletions
