Like
I want to know how to determine whether icons are enabled in the relevant KCM. I found
leading: Item {
width: iconItem.width
PlasmaCore.IconItem {
id: iconItem
source: model.decoration
visible: source !== "" && iconItem.valid
implicitWidth: PlasmaCore.Units.roundToIconSize(parent.height)
implicitHeight: PlasmaCore.Units.roundToIconSize(parent.height)
}
// Fall back to a generic icon if the application doesn't provide a valid one
PlasmaCore.IconItem {
source: "preferences-system-windows"
visible: !iconItem.valid
implicitWidth: PlasmaCore.Units.roundToIconSize(parent.height)
implicitHeight: PlasmaCore.Units.roundToIconSize(parent.height)
}
}
in file:///usr/share/plasma/plasmoids/org.kde.plasma.windowlist/contents/ui/main.qml, but it wasn’t commented, so I don’t know whether it’s useful nor do I understand the code.