group button: modify parent's clickindex on its own

This commit is contained in:
end-4
2025-05-24 18:46:16 +02:00
parent ba8df6e7fe
commit 76abad2487
2 changed files with 19 additions and 14 deletions
@@ -17,14 +17,6 @@ GroupButton {
buttonRadius: Math.min(baseHeight, baseWidth) / 2
buttonRadiusPressed: Appearance?.rounding?.small
onDownChanged: {
if (button.down) {
if (button.parent.clickIndex !== undefined) {
button.parent.clickIndex = parent.children.indexOf(button)
}
}
}
contentItem: MaterialSymbol {
anchors.centerIn: parent
iconSize: Appearance.font.pixelSize.larger