QSqlQueryModel: suppress insert and remove signals while resetting
authorMark Brand <mabrand@mabrand.nl>
Wed, 29 Aug 2012 08:14:08 +0000 (10:14 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 30 Aug 2012 11:51:22 +0000 (13:51 +0200)
commita3963d8bbcf7b4916c0e7c983cf32f95bf727e8c
tree4e63a8197653dc343305a4d14f3e2c70ac038185
parentc194b7f3454f470d24be729ef660c5cfe7a9b841
QSqlQueryModel: suppress insert and remove signals while resetting

There is no need to emit signals for inserting and removing rows
and columns while resetting the model. Suppress these signals in
such a way that subclasses can benefit without worrying about it.

Change-Id: I04447c87173be54a7323b97608cdd40ae245b80b
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/sql/models/qsqlquerymodel.cpp
src/sql/models/qsqlquerymodel.h