QSqlTableModel::selectRow(): complete documentation

Mention in changes and document Qt version (merci à dfaure).
Follow-up to 291e2c7d54.

Change-Id: Ie5626e9cd268812c1173ca494ccd8d6bd9be2687
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
This commit is contained in:
Mark Brand 2012-03-07 00:24:08 +01:00 committed by Qt by Nokia
parent 678ab52ccb
commit 79c0d9adbe
2 changed files with 5 additions and 0 deletions

3
dist/changes-5.0.0 vendored
View File

@ -406,6 +406,9 @@ ignore the rest of the range.
QSqlTableModel::indexInQuery() as example of how to implement in a
subclass.
* QSqlTableModel::selectRow(): This is a new method that refreshes a single
row in the model from the database.
* QSqlTableModel edit strategies OnFieldChange/OnRowChange QTBUG-2875
Previously, after changes were submitted in these edit strategies, select()
was called which removed and inserted all rows. This ruined navigation

View File

@ -392,6 +392,8 @@ bool QSqlTableModel::select()
}
/*!
\since 5.0
Refreshes \a row in the model with values from the database table row matching
on primary key values. Without a primary key, all column values must match. If
no matching row is found, the model will show an empty row.