mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fixup 55100ddbcc
We need to specify the width manually when porting to ItemDelegate. Also we can port to CheckDelegate instead here since it does exactly the same thing as the old list item's custom content item. CCMAIL: notmart@gmail.com
This commit is contained in:
parent
55100ddbcc
commit
40b2dedb2c
1 changed files with 6 additions and 8 deletions
|
|
@ -8,7 +8,6 @@ import QtQuick 2.7
|
|||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Controls 2.11 as QQC2
|
||||
|
||||
import org.kde.kirigami 2.10 as Kirigami
|
||||
import org.kde.kcmutils as KCM
|
||||
import org.kde.kitemmodels 1.0 as KItemModel
|
||||
|
||||
|
|
@ -30,13 +29,12 @@ KCM.ScrollViewKCM {
|
|||
sortOrder: Qt.AscendingOrder
|
||||
}
|
||||
|
||||
delegate: QQC2.ItemDelegate {
|
||||
contentItem: QQC2.CheckBox {
|
||||
text: model.name
|
||||
checked: model.enabled
|
||||
onCheckedChanged: {
|
||||
model.enabled = checked
|
||||
}
|
||||
delegate: QQC2.CheckDelegate {
|
||||
width: ListView.view.width
|
||||
text: model.name
|
||||
checked: model.enabled
|
||||
onToggled: {
|
||||
model.enabled = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue