@@ -81,7 +81,7 @@ QgsAttributeForm::QgsAttributeForm( QgsVectorLayer* vl, const QgsFeature &featur
81
81
connect ( vl, SIGNAL ( selectionChanged () ), this , SLOT ( layerSelectionChanged () ) );
82
82
83
83
// constraints management
84
- updateAllConstaints ();
84
+ updateAllConstraints ();
85
85
}
86
86
87
87
QgsAttributeForm::~QgsAttributeForm ()
@@ -720,7 +720,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant& value )
720
720
emit attributeChanged ( eww->field ().name (), value );
721
721
}
722
722
723
- void QgsAttributeForm::updateAllConstaints ()
723
+ void QgsAttributeForm::updateAllConstraints ()
724
724
{
725
725
Q_FOREACH ( QgsWidgetWrapper* ww, mWidgets )
726
726
{
@@ -740,8 +740,7 @@ void QgsAttributeForm::updateConstraints( QgsEditorWidgetWrapper *eww )
740
740
eww->updateConstraint ( ft );
741
741
742
742
// update eww dependencies constraint
743
- QList<QgsEditorWidgetWrapper*> deps;
744
- constraintDependencies ( eww, deps );
743
+ QList<QgsEditorWidgetWrapper*> deps = constraintDependencies ( eww );
745
744
746
745
Q_FOREACH ( QgsEditorWidgetWrapper* depsEww, deps )
747
746
depsEww->updateConstraint ( ft );
@@ -925,9 +924,9 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint,
925
924
}
926
925
}
927
926
928
- void QgsAttributeForm::constraintDependencies ( QgsEditorWidgetWrapper* w,
929
- QList<QgsEditorWidgetWrapper*>& wDeps )
927
+ QList<QgsEditorWidgetWrapper*> QgsAttributeForm::constraintDependencies ( QgsEditorWidgetWrapper* w )
930
928
{
929
+ QList<QgsEditorWidgetWrapper*> wDeps;
931
930
QString name = w->field ().name ();
932
931
933
932
// for each widget in the current form
@@ -955,6 +954,8 @@ void QgsAttributeForm::constraintDependencies( QgsEditorWidgetWrapper* w,
955
954
}
956
955
}
957
956
}
957
+
958
+ return wDeps;
958
959
}
959
960
960
961
void QgsAttributeForm::preventFeatureRefresh ()
0 commit comments