Filter text reset when attribute reset

This commit is contained in:
Aurore LAFAURIE 2024-04-02 15:19:00 +02:00 committed by Candice Bentéjac
parent c439c5a06e
commit 57a02fc50c
2 changed files with 32 additions and 9 deletions

View file

@ -346,6 +346,22 @@ RowLayout {
FilterComboBox {
inputModel: attribute.desc.values
Component.onCompleted: {
currentIndex = find(attribute.value)
}
onEditingFinished: function(value) {
_reconstruction.setAttribute(attribute, value)
}
Connections {
target: attribute
onValueChanged: {
filterText.clear()
currentIndex = find(attribute.value)
}
}
}
}