Commit 35cca308 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

ScreenChooser: Better support handling double-clicked delegates

By using AbstractButton.onToggled instead of .onClicked.

BUG: 451240
parent 3f026830
Pipeline #207027 passed with stage
in 1 minute and 36 seconds
......@@ -64,7 +64,8 @@ PWD.SystemDialog
label: model.display
highlighted: false
checked: model.checked === Qt.Checked
onClicked: {
checkable: true
onToggled: {
var to = model.checked !== Qt.Checked ? Qt.Checked : Qt.Unchecked;
if (!root.multiple && to === Qt.Checked) {
root.clearSelection()
......@@ -83,7 +84,8 @@ PWD.SystemDialog
label: model.DisplayRole
highlighted: false
checked: model.checked === Qt.Checked
onClicked: {
checkable: true
onToggled: {
var to = model.checked !== Qt.Checked ? Qt.Checked : Qt.Unchecked;
if (!root.multiple && to === Qt.Checked) {
root.clearSelection()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment