Skip to content

Commit 0dca126

Browse files
committedJul 24, 2017
Update sip binding
1 parent 1811a39 commit 0dca126

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ class QgsEditorWidgetWrapper : QgsWidgetWrapper
125125
\param constraintOrigin optional origin for constraints to check. This can be used to limit the constraints tested
126126
to only provider or layer based constraints.
127127
.. versionadded:: 2.16
128+
%End
129+
130+
void updateConstraint( const QgsVectorLayer *layer, int index, const QgsFeature &feature, QgsFieldConstraints::ConstraintOrigin constraintOrigin = QgsFieldConstraints::ConstraintOriginNotSet );
131+
%Docstring
132+
Update constraint on a feature coming from a specific layer.
133+
\param layer The vector layer where the feature is defined
134+
\param index The index of the field to check
135+
\param feature The feature to use to evaluate the constraint
136+
\param constraintOrigin Optional origin for constraints to check. This
137+
can be used to limit the constraints tested to only provider or layer
138+
based constraints.
139+
.. versionadded:: 3.0
128140
%End
129141

130142
bool isValidConstraint() const;

0 commit comments

Comments
 (0)
Please sign in to comment.