5c7f6ee51f
When the source model of a QSortFilterProxyModel has rows removed, a mapping is performed in order to figure out which corresponding rows in the sorted and filtered view of the model are affected. In doing so it constructs a vector of removal intervals which are subsequently used to emit rowsRemoved signals. In the case where many rows are removed (e.g. all of them), many removal intervals are identified that are often adjacent and could be simplified, which is what this patch does. i.e. instead of emitting 3 rowsRemoved for 0-3, 4-6, 7-12, now a single rowsRemoved is emitted for 0-12. Change-Id: Ia503091cc4928378c88257cd8b431582e9ff454e Reviewed-by: David Faure <david.faure@kdab.com> |
||
---|---|---|
.. | ||
qabstractitemmodel | ||
qabstractproxymodel | ||
qidentityproxymodel | ||
qitemmodel | ||
qitemselectionmodel | ||
qsortfilterproxymodel | ||
qsortfilterproxymodel_recursive | ||
qstringlistmodel | ||
itemmodels.pro |