Doc: Explicitly state that QSqlTableModel only handles EditRole
Fixes: 5.12.0 Task-number: QTBUG-70234 Change-Id: I65c6aa60048182c5408dca2aa20098af363b10ec Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
parent
fe463dd422
commit
69a2bc7a2a
@ -565,6 +565,10 @@ bool QSqlTableModel::isDirty(const QModelIndex &index) const
|
||||
Returns \c true if the value could be set or false on error, for
|
||||
example if \a index is out of bounds.
|
||||
|
||||
Returns \c false if the role is not Qt::EditRole. To set data
|
||||
for roles other than EditRole, either use a custom proxy model
|
||||
or subclass QSqlTableModel.
|
||||
|
||||
\sa editStrategy(), data(), submit(), submitAll(), revertRow()
|
||||
*/
|
||||
bool QSqlTableModel::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||
|
Loading…
x
Reference in New Issue
Block a user