diff options
author | Mark Brand <mabrand@mabrand.nl> | 2012-02-13 09:26:21 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-15 02:36:38 +0100 |
commit | 76fa96b99e9ee79d0a2016fb28f17bc2dc58ab0a (patch) | |
tree | fa105b124cd08e5c09f8c71fdbed2e4637bdbf29 /doc/src/snippets/code/src_qtestlib_qtestcase.cpp | |
parent | 7bced2878047840bb9bca58289fa1aa4119f034a (diff) | |
download | qtbase-76fa96b99e9ee79d0a2016fb28f17bc2dc58ab0a.tar.gz |
QSqlRelationalTableModelPrivate: simplify field name translation
It's not appropriate to use indexInQuery() here. First of all,
the row might be an inserted row, and thus not be in the query.
The intent was probably to get the column position in the query,
but this is certainly not row dependent. Furthermore, if there
are inserted or removed columns, these are managed within
QSqlQueryModel.
Change-Id: I89668655b263747a5b849136404112e911722b3d
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'doc/src/snippets/code/src_qtestlib_qtestcase.cpp')
0 files changed, 0 insertions, 0 deletions