Implemented the virtual method moveRows to allow row movement. Used it for the case of sorted insertion. Heavily based on QListModel::moveRows and its unittest. [ChangeLog][QtWidgets][QTableWidget] Implemented moveRows in model. When sorting is enabled, setItem() now moves the row to its sorted position, emitting rowsMoved rather than layoutChanged. Task-number: QTBUG-69807 Change-Id: I62a150cca4e5b7d982f2359a6d8c248494528cac Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit f951c11586081efea108ea5b6a7028c672e12c2a) |
||
|---|---|---|
| .. | ||
| dialogs | ||
| effects | ||
| graphicsview | ||
| itemviews | ||
| kernel | ||
| styles | ||
| util | ||
| widgets | ||
| CMakeLists.txt | ||