diff options
| author | Mark Brand <mabrand@mabrand.nl> | 2011-07-07 11:52:11 +0200 |
|---|---|---|
| committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-05 17:50:35 +0100 |
| commit | f6e3f2468357ceece00ef05a1a17b63524eae1d9 (patch) | |
| tree | fb1ce4c4b068b093764c90ae08bab1086829ca38 /doc/src/snippets/code/doc_src_layout.cpp | |
| parent | 11bd543d901f67f79db3f5b5dfaa626c6e8faa45 (diff) | |
refactor QSqlTableModel::setData()
-move logic out of switch statement
-clear cache more clearly for OnFieldChange
-call setValue() in one place instead of two
-eliminate extra return path
Existing idiosyncracies have been kept for the time
being.
Change-Id: Ia4c5a5fd3e374b53e3c4d870f2ee9d37b5090917
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'doc/src/snippets/code/doc_src_layout.cpp')
0 files changed, 0 insertions, 0 deletions
