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() deviceId: root.device.id()
} }
delegate: PlasmaComponents.ListItem { delegate: PlasmaComponents.ListItem {
id: listitem
enabled: true
onClicked: checked = !checked
PlasmaComponents.Label { PlasmaComponents.Label {
text: appName + ": " + display text: appName + ": " + display
anchors.right: dismissButton.left anchors.right: dismissButton.left
anchors.left: parent.left anchors.left: parent.left
elide: Text.ElideRight elide: listitem.checked ? Text.ElideNone : Text.ElideRight
maximumLineCount: 2 maximumLineCount: listitem.checked ? 0 : 1
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
PlasmaComponents.ToolButton { PlasmaComponents.ToolButton {