Doc: Fix documentation for QSortFilterProxyModel::filterAcceptsColumn
filterAcceptsColumn always returns true unconditionally and must be reimplemented (overridden) by user code to achieve the described behavior. Change the documentation to reflect this fact. Fixes: QTBUG-81654 Change-Id: I0dade63294598238d2ad54ab251b4c1b27c72cdf Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
This commit is contained in:
parent
c3c5a58f65
commit
8aef4fe9a4
@ -3055,12 +3055,8 @@ bool QSortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &
|
|||||||
Returns \c true if the item in the column indicated by the given \a source_column
|
Returns \c true if the item in the column indicated by the given \a source_column
|
||||||
and \a source_parent should be included in the model; otherwise returns \c false.
|
and \a source_parent should be included in the model; otherwise returns \c false.
|
||||||
|
|
||||||
The default implementation returns \c true if the value held by the relevant item
|
\note The default implementation always returns \c true. You must reimplement this
|
||||||
matches the filter string, wildcard string or regular expression.
|
method to get the described behavior.
|
||||||
|
|
||||||
\note By default, the Qt::DisplayRole is used to determine if the column
|
|
||||||
should be accepted or not. This can be changed by setting the \l
|
|
||||||
filterRole property.
|
|
||||||
|
|
||||||
\sa filterAcceptsRow(), setFilterFixedString(), setFilterRegExp(), setFilterWildcard()
|
\sa filterAcceptsRow(), setFilterFixedString(), setFilterRegExp(), setFilterWildcard()
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user