From 0dca126c55e74235fa5a9da30b3d81710fc3e5ed Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Mon, 10 Jul 2017 06:14:52 +0100 Subject: [PATCH] Update sip binding --- .../editorwidgets/core/qgseditorwidgetwrapper.sip | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip b/python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip index c30b487e1c1..4a405bd8d8f 100644 --- a/python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip +++ b/python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip @@ -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;