qt5base-lts/tests/auto/sql/models/qsqltablemodel
Mark Brand 26450fe6a6 QSqlTableModel::removeRows() enforce edit strategy
For OnFieldChange and OnRowChange, we don't want more than one row in
the cache with uncommitted changes. This could happen if deletion in
the database fails while other changes are pending.

Chosen solution is to return false if other rows have pending changes.
Also, we only allow 1 row removed at a time.

Updated test, changes and documentation.

Change-Id: I68baf6d221789b4754e891535070011c759a2155
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
2012-03-15 15:35:43 +01:00
..
.gitignore Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00
qsqltablemodel.pro all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
tst_qsqltablemodel.cpp QSqlTableModel::removeRows() enforce edit strategy 2012-03-15 15:35:43 +01:00