QSqlTableModel: unify code for cache-clearing before select
authorMark Brand <mabrand@mabrand.nl>
Tue, 14 Feb 2012 21:26:43 +0000 (22:26 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 08:12:03 +0000 (09:12 +0100)
commit52dab549868d41fbfb6f3f612c380fb750755aa3
tree3292a5a6ba991b59a882a50857505ce2c788b788
parent8f872ee0e815b27ac6fc13345bb3c80b7e71d083
QSqlTableModel: unify code for cache-clearing before select

The code in submitAll() had the same goal as the code in select,
so it has been unified. The new code in select() avoids sending lots
of dataChanged() signals for rows that are going to be removed
by QSqlQueryModel anyway.

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