7c8c84d92b
Allow createModel() to return a null model on failure (which it already did in release mode builds), but fail the test gracefully instead of crashing when a null model is returned. Change-Id: Iaa0ec31183e0c90fcea512223d01e07ed188a380 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 0d773d839e39f4f4bfd0bf9d652e4f2650adfcb0) |
||
---|---|---|
.. | ||
.gitignore | ||
modelstotest.cpp | ||
qitemmodel.pro | ||
README | ||
tst_qitemmodel.cpp |
This is a QStandardItemModel test. It will help catch a lot of simple problems. You should still create your own test for custom functionality and functions that your model has. Add your model to the modelstotest.cpp file (qt model's are included as examples) and modify the pro file accordingly. Fix the errors in order of failure as later tests assume the ones before them have passed.