Go to file
Mark Brand 10ff9de91b QSqlTableModel: don't cache unchanged value in setData()
This is good for performance in terms of avoiding unnecessary
database activity and keeping the cache smaller.

Detail:
This change was not included in the big refactoring of QSqlTM. The
idea was that the model shouldn't second guess the intention of the
application and maybe the application wants to cause a submit.
It was a marginal consideration.

Now I think it's clear that our interest in not unnecessarily
expanding the cache outweighs that. In addition, applications can now
call selectRow() if they worry that the database values for the row
have changed and want to set a value back again.

Test added.

Change-Id: I63814dcb63a96c6ba1c8cc227807725a954a0b68
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: David Faure <david.faure@kdab.com>
2012-10-05 03:16:19 +02:00
bin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
config.tests Use slogger2 for logging on Blackberry instead of writing to stderr 2012-10-04 14:25:47 +02:00
dist QFlags: use unsigned int when the enum's underlying is unsigned 2012-09-28 23:50:10 +02:00
doc HTML template: Updated copyright information from Nokia to Digia Plc 2012-09-27 02:29:35 +02:00
examples Made cube example not use glActiveTexture. 2012-10-02 10:43:48 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs native android support with eglfs 2012-10-04 11:58:48 +02:00
qmake Make sure the path is quoted in case it has spaces in it 2012-09-28 12:46:43 +02:00
src QSqlTableModel: don't cache unchanged value in setData() 2012-10-05 03:16:19 +02:00
tests QSqlTableModel: don't cache unchanged value in setData() 2012-10-05 03:16:19 +02:00
tools Use slogger2 for logging on Blackberry instead of writing to stderr 2012-10-04 14:25:47 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Remove the <module>version.h files from .gitignore. 2012-09-27 23:51:30 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Use slogger2 for logging on Blackberry instead of writing to stderr 2012-10-04 14:25:47 +02:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro Use slogger2 for logging on Blackberry instead of writing to stderr 2012-10-04 14:25:47 +02:00
sync.profile Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00