diff options
| author | David Faure <david.faure@kdab.com> | 2024-08-09 19:46:52 +0200 |
|---|---|---|
| committer | David Faure <david.faure@kdab.com> | 2024-08-22 14:13:06 +0200 |
| commit | f951c11586081efea108ea5b6a7028c672e12c2a (patch) | |
| tree | 9eafb3e1a62ba379225739029d6eb81744d89e10 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | d3508d48c0e4ef73a3a673ea14fb59cd8d930398 (diff) | |
Implement QTableModel::moveRows
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>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
