[ui] AttributeItemDelegate: make connected GroupAttribute readOnly

This commit is contained in:
Yann Lanthony 2025-02-21 19:01:09 +01:00
parent 5edacee193
commit c4b85fd455

View file

@ -668,7 +668,7 @@ RowLayout {
var obj = cpt.createObject(groupItem,
{
'model': Qt.binding(function() { return attribute.value }),
'readOnly': Qt.binding(function() { return root.readOnly }),
'readOnly': Qt.binding(function() { return !root.editable }),
'labelWidth': 100, // Reduce label width for children (space gain)
'objectsHideable': Qt.binding(function() { return root.objectsHideable }),
'filterText': Qt.binding(function() { return root.filterText }),