Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c
Description
The VisualDataModel will not process dataChanged signals properly for QModelIndexes that have valid parent items. Since the VisualDataModel allows the rootItem to be set there will be cases where the items in the list have a valid parent. It should also verify that the QModelIndexes that are being updated are from the same branch of the tree as those that are currently being displayed.
Please see void QDeclarativeVisualDataModel::_q_dataChanged(const QModelIndex &begin, const QModelIndex &end) in qdeclarativevisualitemmodel.cpp.
I believe other parts of the VisualDataModel element suffer from this same problem (eg _q_rowsInserted & _q_rowsRemoved).