qt5base-lts/tests/auto
Mark Brand a694b9f8d2 fix QSqlTableModel::headerData() for empty query with inserted row
QSqlQueryModel::headerData() relied on virtual indexInQuery() to
detect whether the requested column at row 0 mapped to an index in
the query. This failed when row 0 was a pending insert managed by
QSqlTableModel, and therefore not in the query.

The only thing that matters here is the column.

Task-number: QTBUG-29108
Change-Id: I3e0ae85ba223e444781ec8033386d394bb44f0e8
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2013-02-06 07:57:13 +01:00
..
bic/data test: Add bic data for linux-gcc-amd64 2013-01-29 23:34:24 +01:00
cmake Doc: Fix module name format 2013-01-25 17:27:44 +01:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
corelib tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
dbus Doc: Fix module name format 2013-01-25 17:27:44 +01:00
gui Clean up logical dpi for QImage. 2013-01-31 10:39:38 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
opengl Doc: Fix module name format 2013-01-25 17:27:44 +01:00
other Fix minor typos in docs, printed messages & comments 2013-01-28 18:12:41 +01:00
printsupport Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql fix QSqlTableModel::headerData() for empty query with inserted row 2013-02-06 07:57:13 +01:00
testlib Doc: Fix module name format 2013-01-25 17:27:44 +01:00
tools Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
widgets Doc: Fix references to Qt Test 2013-01-30 01:35:06 +01:00
xml Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
auto.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00