summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_containers.cpp
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-07-06 21:10:45 +0200
committerQt by Nokia <qt-info@nokia.com>2012-02-05 17:50:30 +0100
commit11bd543d901f67f79db3f5b5dfaa626c6e8faa45 (patch)
tree65d3d15a33d332b397f418391450c69b8775615f /doc/src/snippets/code/doc_src_containers.cpp
parentccaa6734f124e9afc86c29e93b77b38ffc54254b (diff)
refactor QSqlTableModel::setRecord()
-Do not use setData() We're using ModifiedRow now so it makes sense to buffer the changes and submit the row at once. This improves readability and encourages further haromonization of the editing strategies. -No longer need temporary change to OnRowChange Previously, the strategy was temporarily changed from OnFieldChange to OnRowChange in order to obtain the desired behavior from setData(). Now, since we don't use setData(), we can program the desired behavior here and don't need this trick. -Comment historical idiosyncracies/bugs Change-Id: I6d9e2a69e1571a74c630ad1392e15b60fc0ad3f2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'doc/src/snippets/code/doc_src_containers.cpp')
0 files changed, 0 insertions, 0 deletions