qt5base-lts/src
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
..
3rdparty Make cache of opentype tables in Harfbuzz face lazy 2012-03-06 12:43:27 +01:00
concurrent Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
corelib QRegularExpression: const correctness fixes 2012-03-06 23:56:55 +01:00
dbus Remove the usage of deprecated qdoc macros. 2012-03-02 23:16:25 +01:00
gui Make cache of opentype tables in Harfbuzz face lazy 2012-03-06 12:43:27 +01:00
modules Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
network Fix tst_QNetworkReply::httpWithNoCredentialUsage autotest 2012-03-06 18:24:09 +01:00
opengl Remove the usage of deprecated qdoc macros. 2012-03-02 23:16:25 +01:00
platformsupport Add missing Q_OBJECT macro to QCoreTextFontEngine 2012-03-06 08:24:22 +01:00
plugins Cocoa: Implement widget palettes. 2012-03-06 12:30:16 +01:00
printsupport Don't leak from QPlatformPrinterSupportPlugin::get() 2012-03-05 16:37:16 +01:00
sql QSqlTableModel: handle changes between submit and select 2012-03-07 00:01:07 +01:00
testlib Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
tools Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
widgets Cocoa: Implement widget palettes. 2012-03-06 12:30:16 +01:00
winmain Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
xml Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
qbase.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_install.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_targets.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
src.pro don't abuse $$fromfile() for inspecting entire projects 2012-02-29 00:05:38 +01:00