QSqlTableModelPrivate::ModifiedRow guard private data
authorMark Brand <mabrand@mabrand.nl>
Mon, 11 Jul 2011 12:41:00 +0000 (14:41 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 21:05:51 +0000 (22:05 +0100)
commit763d0a55e912689f2c0cbad41e81cdc3dbf402d0
tree722646e0879737a5006ebe1924732e5fc3bb7839
parent1247683d40c3fbb4b7ce50cc5361e2398b45875e
QSqlTableModelPrivate::ModifiedRow guard private data

Even though ModifiedRow is not part of the public API, guarding its
data helps make clear the intended patterns of use.

"op" and "primaryValues" are read-only after construction.

setValue() encourages maintainers to let ModifiedRow manage the
"generated" flags of the record.

The primeInsert() signal still exposes the actual record, including
the "generated" flags, which is the justification for recRef().

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