qt5base-lts/tests/auto
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
..
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 QRegularExpression: add captureCount() 2012-03-06 23:56:14 +01:00
dbus Avoid using internal testlib API in QDbusConnection autotest. 2012-03-05 03:44:01 +01:00
gui Stabilize tst_QShortcut 2012-03-06 01:34:53 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix tst_QNetworkReply::httpWithNoCredentialUsage autotest 2012-03-06 18:24:09 +01:00
opengl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other Stabilize tst_QAccessibility::actionTest 2012-03-06 01:34:50 +01:00
shared Refactor input context tests 2012-02-22 13:54:13 +01:00
sql QSqlTableModel: handle changes between submit and select 2012-03-07 00:01:07 +01:00
testlib testlib: Make verbose2 selftest use QCOMPARE as well as QVERIFY. 2012-03-05 05:32:03 +01:00
tools remove injection of default_pre in infile()/$$fromfile() 2012-03-05 14:46:12 +01:00
widgets Stabilize tst_QCalendarWidget::buttonClickCheck 2012-03-06 01:34:55 +01:00
xml clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
auto.pro Disable 'check' target generation for network autotests for Windows. 2012-02-17 11:48:08 +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