QSqlTableModel::primaryValues(): make const

Change-Id: I6d53beb2b177dc5c71c74755f2fb602ab87502c0
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
This commit is contained in:
Mark Brand 2012-02-13 09:42:27 +01:00 committed by Qt by Nokia
parent 2cb41b3da6
commit 2b465676aa
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ bool QSqlTableModelPrivate::exec(const QString &stmt, bool prepStatement,
return true;
}
QSqlRecord QSqlTableModelPrivate::primaryValues(int row)
QSqlRecord QSqlTableModelPrivate::primaryValues(int row) const
{
QSqlRecord record;
if (!query.seek(row)) {

View File

@ -70,7 +70,7 @@ public:
busyInsertingRows(false)
{}
void clear();
QSqlRecord primaryValues(int index);
QSqlRecord primaryValues(int index) const;
virtual void clearCache();
QSqlRecord record(const QVector<QVariant> &values) const;