Update documentation and sip binding

This commit is contained in:
Blottiere Paul 2017-05-17 18:45:06 +02:00
parent 344b964709
commit bb1738dcbb
2 changed files with 8 additions and 0 deletions

View File

@ -1432,6 +1432,9 @@ Assembles mUpdatedFields considering provider fields, joined fields and added fi
QMap< QgsFieldConstraints::Constraint, QgsFieldConstraints::ConstraintStrength> fieldConstraintsAndStrength( int fieldIndex ) const;
%Docstring
Returns a map of constraint with their strength for a specific field of the layer.
\param fieldIndex field index
.. versionadded:: 3.0
:rtype: QMap< QgsFieldConstraints.Constraint, QgsFieldConstraints.ConstraintStrength>
%End

View File

@ -1347,6 +1347,11 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*/
QgsFieldConstraints::Constraints fieldConstraints( int fieldIndex ) const;
/**
* Returns a map of constraint with their strength for a specific field of the layer.
* \param fieldIndex field index
* \since QGIS 3.0
*/
QMap< QgsFieldConstraints::Constraint, QgsFieldConstraints::ConstraintStrength> fieldConstraintsAndStrength( int fieldIndex ) const;
/**