QSqlTableModel: mirror database values in change cache
authorMark Brand <mabrand@mabrand.nl>
Tue, 14 Feb 2012 21:50:40 +0000 (22:50 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 6 Mar 2012 05:34:29 +0000 (06:34 +0100)
commit463bd32fe5120d3954d93b6792050ac47796467f
tree32041071145d36d0e28a643e2e19a09d862c85ee
parent50f6cf6e4852ff39a79bde074204b498ee9ce21d
QSqlTableModel: mirror database values in change cache

Between submitting and the next select, these values will be more
up-to-date than those that could be obtained from the query.

This will be useful for constructing primary values and reverting
changes made after submitting.

Change-Id: I8317617f3e7043ad0b79b333731c55fb88aef171
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
src/sql/models/qsqltablemodel.cpp
src/sql/models/qsqltablemodel_p.h