diff options
author | Ali Kianian <ali.kianian@qt.io> | 2024-04-18 10:27:13 +0300 |
---|---|---|
committer | Ali Kianian <ali.kianian@qt.io> | 2024-04-29 22:20:25 +0300 |
commit | 148add03f3bc2e1e52509500afa80793d1524dc8 (patch) | |
tree | 9bd932747930a67f5cbde8085a1da84fc8e347f3 /src/corelib/compat/removed_api.cpp | |
parent | f9a994b86afdf24d723db189fdc58066be4952f6 (diff) |
Enable resetting a sort model by descending order
By this change, sort(any_negative_number) will stay unchanged, and it
unsorts the model so that the order will be the same as the source
model.
But when the second argument of the sort is set to DescendingOrder
deliberately, the result will be the same as the source model, but in
reverse order.
[ChangeLog][QTCore][QSortFilterProxyModel] QSortFilterProxyModel.sort
sorts the proxy by the source model index descending if the sort
column is less than zero and the order is descending.
Fixes: QTBUG-124863
Change-Id: I73f9d3b500a929efa969cf24ef3d8fe758167645
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
0 files changed, 0 insertions, 0 deletions