qt5base-lts/tests/auto/corelib/kernel/qitemmodel
Kent Hansen b8d656d878 Fix autotest gui/widgets dependencies
This is in preparation of removing testlib's
dependency on QtGui and QtWidgets.

Autotests that need QtWidgets api must
explicitly include it (since the types are no
longer provided by the QtGui master header).

Autotests that don't need QtGui or QtWidgets
api shouldn't link against those libraries.

Change-Id: I2808289068514fcac582808828ad4634e2631733
Reviewed-on: http://codereview.qt-project.org/5093
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2011-09-19 10:24:25 +02:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
modelstotest.cpp Fix autotest gui/widgets dependencies 2011-09-19 10:24:25 +02:00
qitemmodel.pro Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
README Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
tst_qitemmodel.cpp Merge branch 'refactor' 2011-09-13 08:54:45 +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.