qt5base-lts/tests/auto/corelib/itemmodels/qitemmodel
Thiago Macieira 672b5b7ab6 Set the Qt API level to compatibility mode in all tests.
Qt 5.0 beta requires changing the default to the 5.0 API, disabling
the deprecated code. However, tests should test (and often do) the
compatibility API too, so turn it back on.

Task-number: QTBUG-25053
Change-Id: I8129c3ef3cb58541c95a32d083850d9e7f768927
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-08-01 15:37:46 +02:00
..
.gitignore Move the qitemmodel test to the itemmodels directory. 2012-01-06 17:21:25 +01:00
modelstotest.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qitemmodel.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
README Move the qitemmodel test to the itemmodels directory. 2012-01-06 17:21:25 +01:00
tst_qitemmodel.cpp QAbstractItemView: don't qRegisterMetaType<QModelIndex> 2012-07-24 10:46:24 +02: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.