summaryrefslogtreecommitdiffstats
path: root/tests/auto/modeltest/dynamictreemodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adjust the parent index for the itemsMoved call.Stephen Kelly2010-10-131-0/+7
| | | | | | | | | | | Not doing this causes the parent QModelIndexes to be out of sync with the model. The fix in fe350ca756df6392b3d0b7840351fccc89f9ef6f is extended to also use adjusted indexes in the itemMove call. Merge-request: 849 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
* Don't call invalidate when resetting the QSortFilterProxyModel.Stephen Kelly2010-01-061-1/+2
| | | | | | | | | | | | | | | The invalidate connection is made before connecting the source model, which means it gets called first. If a second proxy model is used with it, the sourceLayoutAboutToBeChanged of the second proxy is therefore called before its sourceReset slot, but after the persistent indexes of the first model have been invalidated. The invalidate call is not needed because clear_mappings is called when the source model is reset anyway. Merge-request: 416 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* Make sure mappings are created for columns when indexes newly become parents.Stephen Kelly2009-12-181-0/+328
Also move the modeltest related tests to the modeltest subdirectory Merge-request: 2262 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>