Update sip binding

This commit is contained in:
Blottiere Paul 2017-07-10 06:14:52 +01:00
parent 1811a39654
commit 0dca126c55

View File

@ -125,6 +125,18 @@ class QgsEditorWidgetWrapper : QgsWidgetWrapper
\param constraintOrigin optional origin for constraints to check. This can be used to limit the constraints tested
to only provider or layer based constraints.
.. versionadded:: 2.16
%End
void updateConstraint( const QgsVectorLayer *layer, int index, const QgsFeature &feature, QgsFieldConstraints::ConstraintOrigin constraintOrigin = QgsFieldConstraints::ConstraintOriginNotSet );
%Docstring
Update constraint on a feature coming from a specific layer.
\param layer The vector layer where the feature is defined
\param index The index of the field to check
\param feature The feature to use to evaluate the constraint
\param constraintOrigin Optional origin for constraints to check. This
can be used to limit the constraints tested to only provider or layer
based constraints.
.. versionadded:: 3.0
%End
bool isValidConstraint() const;