Commit cb259cee authored by Nate Graham's avatar Nate Graham
Browse files

ScreenChooserDialog: make it obvious that they're checkable

The fact that you can select more than one is not visually obvious right
now. This commit remedies that by using a Kirigami.CheckableListItem,
which was made for just this purpose.
parent 5efcb37b
Pipeline #125267 passed with stage
in 48 seconds
......@@ -58,10 +58,9 @@ PWD.SystemDialog
ListView {
id: outputsView
model: null
delegate: Kirigami.BasicListItem {
delegate: Kirigami.CheckableListItem {
icon: model.decoration
label: model.display
highlighted: false
checked: model.checked === Qt.Checked
onClicked: {
var to = model.checked !== Qt.Checked ? Qt.Checked : Qt.Unchecked;
......@@ -77,10 +76,9 @@ PWD.SystemDialog
ListView {
id: windowsView
model: null
delegate: Kirigami.BasicListItem {
delegate: Kirigami.CheckableListItem {
icon: model.DecorationRole
label: model.DisplayRole
highlighted: false
checked: model.checked === Qt.Checked
onClicked: {
var to = model.checked !== Qt.Checked ? Qt.Checked : Qt.Unchecked;
......
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