Make it possible to toggle full notification contents by clicking on it

REVIEW: 129087
This commit is contained in:
Aleix Pol 2016-10-04 01:12:04 +02:00
parent 22358ef3eb
commit eb31c1e152

View file

@ -130,12 +130,16 @@ PlasmaComponents.ListItem
deviceId: root.device.id()
}
delegate: PlasmaComponents.ListItem {
id: listitem
enabled: true
onClicked: checked = !checked
PlasmaComponents.Label {
text: appName + ": " + display
anchors.right: dismissButton.left
anchors.left: parent.left
elide: Text.ElideRight
maximumLineCount: 2
elide: listitem.checked ? Text.ElideNone : Text.ElideRight
maximumLineCount: listitem.checked ? 0 : 1
wrapMode: Text.WordWrap
}
PlasmaComponents.ToolButton {