QSqlTableModel::primaryValues(): make const
Change-Id: I6d53beb2b177dc5c71c74755f2fb602ab87502c0 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
This commit is contained in:
parent
2cb41b3da6
commit
2b465676aa
@ -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)) {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user