QSortFilterProxyModel doc: do not mention deprecated function reset()

QSFPM::reset() is deprecated and begin/endResetModel() should be used.
Therefore adjust the documentation to reflect this.

Fixes: QTBUG-82470
Change-Id: I786b3f25e5674d97d0ef6a0c91342973d5e952e9
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Christian Ehrlicher 2020-03-08 19:52:18 +01:00
parent c1bb628572
commit 3702a4c37e

View File

@ -1949,8 +1949,9 @@ void QSortFilterProxyModelPrivate::_q_sourceColumnsMoved(
example.) example.)
If you are working with large amounts of filtering and have to invoke If you are working with large amounts of filtering and have to invoke
invalidateFilter() repeatedly, using reset() may be more efficient, invalidateFilter() repeatedly, using beginResetModel() / endResetModel() may
depending on the implementation of your model. However, reset() returns the be more efficient, depending on the implementation of your model. However,
beginResetModel() / endResetModel() returns the
proxy model to its original state, losing selection information, and will proxy model to its original state, losing selection information, and will
cause the proxy model to be repopulated. cause the proxy model to be repopulated.