[ui] add readOnly property on AttributeEditor

* setting readOnly to 'true' disable editing on AttributeItemDelegate components
* use this property instead of disabling the whole AttributeEditor when graph is being computed
This commit is contained in:
Yann Lanthony 2017-11-24 17:43:25 +01:00
parent 0e08291f8a
commit 826c6caa07
3 changed files with 27 additions and 9 deletions

View file

@ -293,8 +293,8 @@ ApplicationWindow {
sourceComponent: Component {
AttributeEditor {
node: graphEditor.selectedNode
// Disable editor when computing
enabled: !_reconstruction.computing
// Make AttributeEditor readOnly when computing
readOnly: _reconstruction.computing
}
}
}