qt5base-lts/tests/auto
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
..
bic Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Complete split of QtConcurrent. 2012-02-06 16:48:22 +01:00
corelib Initialize dynamic meta object extradata. 2012-02-08 09:53:23 +01:00
dbus Align QVariant::UserType and QMetaType::User 2012-02-07 08:52:32 +01:00
gui Removed image format specific template functions in raster engine. 2012-02-07 15:52:01 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix qlocalsocket autotest 2012-02-08 09:53:23 +01:00
opengl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other Make copy and cut methods work in QAccessibleTextEdit 2012-02-08 07:48:46 +01:00
sql QSqlTableModel::setRecord(): do not try to detect value changes 2012-02-08 14:43:18 +01:00
testlib testlib: Clear ignored messages after every data row 2012-02-08 03:13:23 +01:00
tools Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
widgets QTextEdit cursor position fix when moving left/right with selection 2012-02-08 12:37:22 +01:00
xml Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
auto.pro Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00