QSqlTableModel::setData(): call dataChanged() before select()
authorMark Brand <mabrand@mabrand.nl>
Wed, 8 Feb 2012 08:35:38 +0000 (09:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 13:43:18 +0000 (14:43 +0100)
commit678d56ccf1e6970c2cfe149b99f080ec1002c89f
tree810f3a14f043408a37ed5b61ad97d7e4f28b3e18
parentf3138fa080b1c6ce7ab28c4572c3cf647b3485c1
QSqlTableModel::setData(): call dataChanged() before select()

Emit dataChanged() before a possible new select instead of after.
The select reinserts all the rows, emitting signals for that, so
there isn't any point to dataChanged() afterwards.

Change-Id: I698a0d385f97104891343d94cc27e4ecf3a7233c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/sql/models/qsqltablemodel.cpp