buttongroup: fix childrencount accessing from children

This commit is contained in:
end-4
2025-10-27 22:44:33 +01:00
parent c1a5641ff5
commit 08d1a2dfd6
@@ -13,8 +13,8 @@ Rectangle {
property alias uniformCellSizes: rowLayout.uniformCellSizes
property real spacing: 5
property real padding: 0
property int clickIndex: rowLayout.clickIndex
property int childrenCount: rowLayout.children.length
property alias clickIndex: rowLayout.clickIndex
property alias childrenCount: rowLayout.childrenCount
property real contentWidth: {
let total = 0;
@@ -44,5 +44,6 @@ Rectangle {
anchors.margins: root.padding
spacing: root.spacing
property int clickIndex: -1
property int childrenCount: children.length
}]
}