qt5base-lts/tests/auto/sql/models
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
..
qsqlquerymodel Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsqlrelationaltablemodel QSqlTableModel::setData(): no longer autosubmit for OnRowChange 2012-03-15 15:35:32 +01:00
qsqltablemodel QSqlTableModel::removeRows() enforce edit strategy 2012-03-15 15:35:43 +01:00
models.pro Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00