eeebb27650
Don't perform actions needed for the test inside Q_ASSERT, because these actions won't happen in a non-debug build. Change-Id: I0758e9f29f38c1a83a1501357286877f05beb6c8 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit b7d421da6d5e945b74ffbc3a7aa635a6ce63ebda) |
||
---|---|---|
.. | ||
.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.