diff options
author | Giulio Camuffo <giulio.camuffo@kdab.com> | 2020-03-05 10:08:40 +0100 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@kdab.com> | 2020-03-18 15:42:58 +0100 |
commit | b5f6a85d2745ab6ac97f593664d255906923e737 (patch) | |
tree | dee1fe238e7b8d7f23545ca42cf4a7bae0f19253 /tests/auto/tools | |
parent | 963c47aece12a0025707c76f6f8cb3de306752b8 (diff) |
Add a way to filter only rows or columns in QSortFilterProxyModel
If we want to filter away a column without changing the filtering
for the rows calling invalidateFilter() is wasteful because it will
call filterAcceptsRow() for all rows even though that is not needed.
This commit add two functions, invalidateRowsFilter() and
invalidateColumnsFilter() that work the same way as invalidateFilter()
except that they will invoke respectively only filterAcceptsRow() and
filterAcceptsColumn().
Change-Id: Ib4351cf08c229bd97bbbfee6da92397dca579a84
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'tests/auto/tools')
0 files changed, 0 insertions, 0 deletions