QSqlTableModel::removeRows(): require valid full range of rows
authorMark Brand <mabrand@mabrand.nl>
Mon, 6 Feb 2012 16:19:19 +0000 (17:19 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 21:05:51 +0000 (22:05 +0100)
commit269ef14215d3c3f89fe6239879a5db111dc1a7b4
tree0825c2a4ba8d39b8d12b40f933147e44365e8135
parentf5e1da12f0e7bdeee4db74acc52dfabeb12a4e31
QSqlTableModel::removeRows(): require valid full range of rows

If an invalid range of rows is specified, it's likely to be a
programming or user error. The old behavior of ignoring out of range
rows seems dangerous and complicates the code.

Also implement the documented behavior of returning false if
changes are unsuccessful for OnFieldChange and OnRowChange.
Previously the return value of submit() was ignored.

Updated and improved documentation.

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