Skip to content

Commit bb1738d

Browse files
committedMay 18, 2017
Update documentation and sip binding
1 parent 344b964 commit bb1738d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎python/core/qgsvectorlayer.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,9 @@ Assembles mUpdatedFields considering provider fields, joined fields and added fi
14321432

14331433
QMap< QgsFieldConstraints::Constraint, QgsFieldConstraints::ConstraintStrength> fieldConstraintsAndStrength( int fieldIndex ) const;
14341434
%Docstring
1435+
Returns a map of constraint with their strength for a specific field of the layer.
1436+
\param fieldIndex field index
1437+
.. versionadded:: 3.0
14351438
:rtype: QMap< QgsFieldConstraints.Constraint, QgsFieldConstraints.ConstraintStrength>
14361439
%End
14371440

‎src/core/qgsvectorlayer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,11 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
13471347
*/
13481348
QgsFieldConstraints::Constraints fieldConstraints( int fieldIndex ) const;
13491349

1350+
/**
1351+
* Returns a map of constraint with their strength for a specific field of the layer.
1352+
* \param fieldIndex field index
1353+
* \since QGIS 3.0
1354+
*/
13501355
QMap< QgsFieldConstraints::Constraint, QgsFieldConstraints::ConstraintStrength> fieldConstraintsAndStrength( int fieldIndex ) const;
13511356

13521357
/**

0 commit comments

Comments
 (0)
Please sign in to comment.