Go to file
Mark Brand 5953304bc5 QSqlTableModel::setRecord(): do not try to detect value changes
In an apparent attempt to be economical with emitting dataChanged()
and submitting SQL to the databse, setRecord() compares each field
value of the record with the old value, taking action only when
a difference is detected.  Several complaints against this code are:

-The comparision does not work on float type.

-It is really up to the application and database to decide this. The
model should make few assumptions. The application has the option to
omit fields from the record that should be ignored.

-The current behavior seems to assume that the "old" values are the
current state of the database, but the database may have changed since
the model was last refreshed.

-The code compares the value from record(), which probably
corresponds to the EditRole, with the DisplayRole value from data().

Change-Id: I11477c185eb411d442144dc682893d0df12d03d5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-02-08 14:43:18 +01:00
bin Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
config.tests Reorganize evdev plugins 2012-02-08 03:13:18 +01:00
dist QSqlTableModel: do not suppress dataChanged() on inserted record 2012-02-08 14:43:18 +01:00
doc/src QString: Make convert to number methods only use C locale 2012-02-05 17:49:42 +01:00
examples Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Add special casing for static modules. 2012-02-07 17:55:33 +01:00
qmake Fix qmake evaluation of QMAKE_TARGET.arch on msvc2010 x86_64 2012-02-08 07:48:43 +01:00
src QSqlTableModel::setRecord(): do not try to detect value changes 2012-02-08 14:43:18 +01:00
tests QSqlTableModel::setRecord(): do not try to detect value changes 2012-02-08 14:43:18 +01:00
tools Windows configure: make -mp affect the Qt build itself 2012-02-01 19:02:28 +01:00
util Avoid non-standard indentation of license headers. 2012-01-30 16:40:10 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Update .gitignore to ignore qmake/qmake_pch.pch 2012-02-03 06:05:02 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Reorganize evdev plugins 2012-02-08 03:13:18 +01:00
configure.exe Rebuild configure.exe. 2012-02-08 03:14:04 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Add configure, sync.profile, and header.* to OTHER_FILES in qtbase.pro 2012-02-08 07:40:03 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00