path: root/dist
diff options
authorMark Brand <>2012-03-15 11:23:27 +0100
committerQt by Nokia <>2012-03-15 15:35:43 +0100
commit26450fe6a6340b09b1e3fa49c35028aa15ef223f (patch)
tree3c39e9d1aebb649953e6a758c0820702083e502c /dist
parent108748404beb607538ea965a21fa932d275eecdd (diff)
QSqlTableModel::removeRows() enforce edit strategy
For OnFieldChange and OnRowChange, we don't want more than one row in the cache with uncommitted changes. This could happen if deletion in the database fails while other changes are pending. Chosen solution is to return false if other rows have pending changes. Also, we only allow 1 row removed at a time. Updated test, changes and documentation. Change-Id: I68baf6d221789b4754e891535070011c759a2155 Reviewed-by: Honglei Zhang <>
Diffstat (limited to 'dist')
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index ebe8ad5331..03dc414e7f 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -413,6 +413,9 @@ model methods setData() or setRecord().
before doing anything. Previously, it would remove what it could and
ignore the rest of the range.
+* removeRows(), for OnFieldChange and OnRowChange, allows only 1 row to be
+removed and only if there are no other changed rows.
* setRecord() and insertRecord()
-Only use fields where generated flag is set to true. This is
is consistent with the meaning of the flag.