QSqlTableModel::primaryValues(): take care of row mapping
authorMark Brand <mabrand@mabrand.nl>
Mon, 13 Feb 2012 08:57:56 +0000 (09:57 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 01:36:25 +0000 (02:36 +0100)
commitf805dd0b40c4b99b63e13e6e1bff08a63b76e0dd
treeafa987264b1412e3bf555864d8df00b335bf86c5
parent555aa4439b3a4a2c5fd12b6ac155b87fe69e749f
QSqlTableModel::primaryValues(): take care of row mapping

There is no reason for the caller to be concerned with this.
primaryValues() now takes advantage of the fact that QSqlQueryModel
uses indexInQuery which was recently made virtual.

Change-Id: I7d856ee05f55c3199fd17c618e559320d0582989
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
src/sql/models/qsqltablemodel.cpp