Helps to use it together with ModelTest
Details
Details
Diff Detail
Diff Detail
- Repository
- R275 KItemModels
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
BTW, the commit message refers to ModelTest, but that's the old modeltest.cpp, not the new QAbstractItemModelTester, right?
I'm working on QConcatenateTablesProxyModel (https://codereview.qt-project.org/166323) and there QAbstractItemModelTester passes with asserts for all these invalid calls. The old modeltest is now considered wrong ;)
Not saying this commit should be reverted or anything, this is just to let you know about QAbstractItemModelTester and the fact that the new idea is narrow contract, asserting is good, while the old modeltest assumed very tolerant model implementations.
Comment Actions
Yep, this was from the old and deprecated modeltest.cpp.
I'll have to look into how to do it right :P