fix combobox component for ParamDescriptorDelegate

pull/1/head
Michael Zanetti 2018-06-12 19:06:45 +02:00
parent fe27f94ba1
commit b5870af828
2 changed files with 1 additions and 2 deletions

View File

@ -159,7 +159,7 @@ ItemDelegate {
ComboBox {
model: paramType.allowedValues
onCurrentIndexChanged: {
root.value = paramType.allowedValues[index]
root.value = paramType.allowedValues[currentIndex]
}
}
}

View File

@ -64,7 +64,6 @@ Page {
for (var i = 0; i < delegateRepeater.count; i++) {
var paramDelegate = delegateRepeater.itemAt(i);
if (paramDelegate.considerParam) {
print("setting param descriptor to", paramDelegate.operatorType)
root.eventDescriptor.paramDescriptors.setParamDescriptor(paramDelegate.paramType.id, paramDelegate.value, paramDelegate.operatorType)
}
}