qt5base-lts/tests/auto/sql
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
..
kernel Handle the 'real' datatype correctly in the SQLite driver 2012-02-03 15:09:03 +01:00
models QSqlTableModel::setRecord(): emit dataChanged() consistently 2012-02-08 14:43:18 +01:00
sql.pro Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00