From 851fc0fdb1dcb54cbde82ffad0b54cfe3f896b83 Mon Sep 17 00:00:00 2001 From: Peter Yard Date: Fri, 24 Jul 2009 10:49:35 +1000 Subject: #159306 QAbstractItemModel::reset Doc change --- src/corelib/kernel/qabstractitemmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corelib/kernel/qabstractitemmodel.cpp b/src/corelib/kernel/qabstractitemmodel.cpp index 1c3371f..3d9263e 100644 --- a/src/corelib/kernel/qabstractitemmodel.cpp +++ b/src/corelib/kernel/qabstractitemmodel.cpp @@ -2278,7 +2278,8 @@ void QAbstractItemModel::endRemoveColumns() \note The view to which the model is attached to will be reset as well. When a model is reset it means that any previous data reported from the - model is now invalid and has to be queried for again. + model is now invalid and has to be queried for again. This also means + that the current item and any selected items will become invalid. When a model radically changes its data it can sometimes be easier to just call this function rather than emit dataChanged() to inform other -- cgit v0.12