Skip to content
Permalink
Browse files

Set current feature to evaluate expressions

  • Loading branch information
tomasMizera authored and PeterPetrik committed Nov 17, 2020
1 parent 2e982a0 commit 182a388135040afdf496a016f48f7666f75c2120
@@ -35,6 +35,11 @@ Item {
combobox.popup.open()
}

// Called when data in different fields are changed.
function dataUpdated(feature) {
vrModel.currentFeature = feature
}

id: fieldItem
enabled: !readOnly
height: customStyle.fields.height
@@ -442,6 +442,16 @@ Item {
}
}

Connections {
target: form.model
onDataChanged: {
if ( attributeEditorLoader.item && attributeEditorLoader.item.dataUpdated )
{
attributeEditorLoader.item.dataUpdated( form.model.attributeModel.featureLayerPair.feature )
}
}
}

Connections {
target: form
ignoreUnknownSignals: true

0 comments on commit 182a388

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