path: root/dist
diff options
authorKent Hansen <>2012-03-16 10:01:29 +0100
committerKent Hansen <>2012-03-16 10:01:29 +0100
commit440f452aa3a5609e5f6006a03ac36d41462d5908 (patch)
tree598d682291945055e4f6feb08a228212648482c1 /dist
parentcd1e62ffc121cc68c5a133a8095d431f04d966ce (diff)
parentd4959fa6376255ab4adf8adaeb2ee47ae6b679d2 (diff)
Merge master into api_changes
Conflicts: src/corelib/kernel/qmetatype.cpp src/gui/kernel/qplatformsurface_qpa.cpp tests/auto/corelib/tools/qtimeline/ Change-Id: Iff3fff34eeeb06f02369767ddfce44cfde505178
Diffstat (limited to 'dist')
1 files changed, 31 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index 79a4eb0455..0fd7cffb2f 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -364,6 +364,22 @@ QtWidgets
the proper Qt API: due to the version bump, QStyle will try to use the additional
QStyleOption members, which are left default-initialized.
+* QHeaderView - The following functions have been obsoleted.
+ * void setMovable(bool movable) - use void setSectionsMovable(bool movable) instead.
+ * bool isMovable() const - use bool sectionsMovable() const instead.
+ * void setClickable(bool clickable) - use void setSectionsClickable(bool clickable) instead.
+ * bool isClickable() const - use bool sectionsClickable() instead.
+ * void setResizeMode(int logicalindex, ResizeMode mode) -
+ use setSectionResizeMode(logicalindex, mode) instead.
+ * ResizeMode resizeMode(int logicalindex) const -
+ use sectionResizeMode(int logicalindex) instead.
* QHostAddress::isLoopback() API added. Returns true if the address is
@@ -409,6 +425,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.
@@ -416,6 +435,7 @@ ignore the rest of the range.
map were simply ignored.
-For OnManualSubmit, insertRecord() no longer leaves behind an empty
row if setRecord() fails.
+ -setRecord() now automatically submits for OnRowChange.
* QSqlQueryModel::indexInQuery() is now virtual. See
QSqlTableModel::indexInQuery() as example of how to implement in a
@@ -432,6 +452,17 @@ done after committing. This includes deleted rows which remain in
the model as blank rows until the application calls select(). Instead,
selectRow() is called to refresh only the affected row.
+* QSqlTableModel::isDirty(): New overloaded method to check whether model
+has any changes to submit. QTBUG-3108
+* QSqlTableModel::setData() and setRecord() no longer revert pending changes
+that fail upon resubmitting for edit strategies OnFieldChange and OnRowChange.
+Instead, pending (failed) changes cause new changes inappropriate to the
+edit strategy to be refused. The application should resolve or revert pending
+changes. insertRows() and insertRecord() also respect the edit strategy.
+* QSqlTableModel::setData() and setRecord() in OnRowChange no longer have the
+side effect of submitting the cached row when invoked on a different row.
* Database Drivers *