diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2024-02-21 11:01:45 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-02-23 00:32:52 +0000 |
commit | 71e6735e229dfba70ffc1cfbd396f886617b24bd (patch) | |
tree | daf5d9f2b219e5a2a14a431df1f3284533f80081 | |
parent | 8473329c20c00863e759f22b7326ab8220163dbc (diff) |
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 <oliver.eftevaag@qt.io>
(cherry picked from commit 8f705f0db91155401e50a750f0e7037d13df1d0a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 5d94598e4afe4b88ce100878ff250fc18bea2899)
-rw-r--r-- | examples/quickcontrols/gallery/pages/DelegatePage.qml | 8 |
1 files 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 |