qt5base-lts/tests/auto/sql/models
Mark Brand 7b726900ec QSqlTableModel::setRecord(): emit dataChanged() consistently
Previously, if any fields in the supplied record could not be matched
with a column in the target table, dataChanged() was supressed for all
columns for OnManualSubmit. This is not good because it prevents other
views from noticing the fields that *do* change.

It's simplest and probably more efficient just to emit
dataChanged() once for the whole row. Fewer signals need to be
processed and in typical cases much or all of the row is likely to
be changed anyway.

Change-Id: Ib56bf9a18e51b9cb85771acefcb2bf26e295a54e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-02-08 14:43:18 +01:00
..
qsqlquerymodel Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsqlrelationaltablemodel Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsqltablemodel QSqlTableModel::setRecord(): emit dataChanged() consistently 2012-02-08 14:43:18 +01:00
models.pro Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00