QAbstractProxyModel: Document setSourceModel a bit more

Especially so that subclasses remember to emit reset.

Change-Id: Iadcae3fc5fe72584465d4134f385ed0a1d77bfcd
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
bb10
David Faure 2012-12-20 13:20:29 +01:00 committed by The Qt Project
parent 84dbdc8db6
commit a42a1db6e1
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ QAbstractProxyModel::~QAbstractProxyModel()
/*!
Sets the given \a sourceModel to be processed by the proxy model.
Subclasses should call beginResetModel() at the beginning of the method,
disconnect from the old model, call this method, connect to the new model,
and call endResetModel().
*/
void QAbstractProxyModel::setSourceModel(QAbstractItemModel *sourceModel)
{