Go to file
Mark Brand b979956ec4 QSqlTableModel: handle changes between submit and select
Once an insert has been submitted, the cached record behaves like an
update. For row bookkeeping, we still have to remember that it was
originally inserted and is not in the query rows.

Between submitting a delete and selecting, we remove the values
from the deleted record. This causes a blank row to be displayed.
Read-only flag is set for cells in deleted row.

Reverting between submit and select means going back to the last
submitted values.

When removing rows, it's better to process from highest row numbers
to lowest. This avoids complications with higher rows shifting down
when lower rows are removed.

Change-Id: I8752fa11f7a1b88f2a71b9e03a020ac37e62487f
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
2012-03-07 00:01:07 +01:00
bin Report failure to open deprecated header file 2012-02-23 04:04:59 +01:00
config.tests Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
dist QRegularExpression: add QRegularExpression* set of classes 2012-03-06 21:53:39 +01:00
doc/src QRegularExpression: add QRegularExpression* set of classes 2012-03-06 21:53:39 +01:00
examples add widget mousebuttons example 'mousetester'. 2012-03-06 08:24:22 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs transitively resolve module dependencies 2012-03-06 17:40:44 +01:00
qmake don't add bogus /mkspecs to QMAKE_MKSPECS 2012-03-06 21:50:25 +01:00
src QSqlTableModel: handle changes between submit and select 2012-03-07 00:01:07 +01:00
tests QSqlTableModel: handle changes between submit and select 2012-03-07 00:01:07 +01:00
tools Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
util clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add src/concurrent/qtconcurrentversion.h to .gitignore 2012-02-23 09:01:18 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
configure.bat Remove Q_BYTE_ORDER and -*-endian arguments from configures 2012-03-02 14:48:00 +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 revamp -sysroot and -hostprefix handling 2012-03-01 23:18:23 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00