QSqlTableModel: derive primary values from database values
authorMark Brand <mabrand@mabrand.nl>
Tue, 14 Feb 2012 22:45:44 +0000 (23:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 6 Mar 2012 05:34:31 +0000 (06:34 +0100)
commit698e620aad68d702c32b62e8114fe12a7b3e2ca5
tree9a092ddff5dac97401214b06e59eb49c44955169
parent463bd32fe5120d3954d93b6792050ac47796467f
QSqlTableModel: derive primary values from database values

Primary values are used to map a row in the model to a row in the
database table. It is critically important between submitting a
change and the following select (which refreshes the query) to have
updated primary values. Otherwise, if the change affected the primary
values, additional changes before select will misbehave.

Change-Id: I5d08dd70ac5d3f06cd9d3186a439f4c80a037c2d
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
src/sql/models/qsqltablemodel.cpp
src/sql/models/qsqltablemodel_p.h