Skip to content
Permalink
Browse files
Update documentation and sip binding
  • Loading branch information
pblottiere committed May 18, 2017
1 parent 344b964 commit bb1738dcbb1a664f12915de2367844d2971a0ac3
Showing with 8 additions and 0 deletions.
  1. +3 −0 python/core/qgsvectorlayer.sip
  2. +5 −0 src/core/qgsvectorlayer.h
@@ -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

@@ -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;

/**

0 comments on commit bb1738d

Please sign in to comment.