qt5base-lts/tests/auto/corelib/itemmodels/qitemmodel
Volker Hilsheimer 94dcb5454f Remove the deprecated QDirModel
QFileSystemModel is the documented replacement. It uses threads to
populate the model, which QDirModel doesn't.

Change-Id: I7818ecd8f849eb566ac176612f382e17a0471c47
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2020-06-04 19:11:19 +02:00
..
.gitignore Move the qitemmodel test to the itemmodels directory. 2012-01-06 17:21:25 +01:00
CMakeLists.txt cmake: add tests/auto/corelib/itemmodels 2019-10-04 13:45:40 +00:00
modelstotest.cpp Remove the deprecated QDirModel 2020-06-04 19:11:19 +02:00
qitemmodel.pro Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
README Move the qitemmodel test to the itemmodels directory. 2012-01-06 17:21:25 +01:00
tst_qitemmodel.cpp Merge remote-tracking branch 'origin/5.12' into 5.13 2019-03-26 08:27:02 +01:00

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.