From 71e6735e229dfba70ffc1cfbd396f886617b24bd Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 21 Feb 2024 11:01:45 +0800 Subject: gallery: fix RadioDelegates not being exclusive The ButtonGroup was being declared several times rather than once. Amends b663020c9a60704dc53014522a3faa23892280a0. Fixes: QTBUG-122454 Pick-to: 6.5 Change-Id: If66f5a5a6841a56abbf93908c83facc9970def40 Reviewed-by: Oliver Eftevaag (cherry picked from commit 8f705f0db91155401e50a750f0e7037d13df1d0a) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 5d94598e4afe4b88ce100878ff250fc18bea2899) --- examples/quickcontrols/gallery/pages/DelegatePage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/quickcontrols/gallery/pages/DelegatePage.qml b/examples/quickcontrols/gallery/pages/DelegatePage.qml index 5d4c6b9db2..519fffc6d2 100644 --- a/examples/quickcontrols/gallery/pages/DelegatePage.qml +++ b/examples/quickcontrols/gallery/pages/DelegatePage.qml @@ -20,6 +20,10 @@ Pane { text: qsTr("Delegate controls are used as delegates in views such as ListView.") } + ButtonGroup { + id: radioButtonGroup + } + ListView { id: listView clip: true @@ -152,10 +156,6 @@ Pane { } } - ButtonGroup { - id: radioButtonGroup - } - Component { id: radioDelegateComponent -- cgit v1.2.3