Skip to content
Permalink
Browse files

Update sip binding

  • Loading branch information
pblottiere committed Jul 10, 2017
1 parent 1811a39 commit 0dca126c55e74235fa5a9da30b3d81710fc3e5ed
Showing with 12 additions and 0 deletions.
  1. +12 −0 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;

0 comments on commit 0dca126

Please sign in to comment.
You can’t perform that action at this time.