Commit 4bd06bd7 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[notifications] Remove notifications by clicking on them.

parent d475d3c0
......@@ -30,6 +30,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
// the place for an event feed.
Item {
id: rootitem
Column {
spacing: 40
// Day of week
......@@ -62,6 +63,7 @@ Item {
}
}
}
Column {
anchors.top: daterow.bottom
spacing: 40
......@@ -72,7 +74,17 @@ Item {
delegate: Row {
spacing: 16
height: 40
width: rootitem.width
MouseArea {
anchors.fill: parent
onClicked: {
if (modelData.userRemovable) {
modelData.removeRequested()
}
}
Image {
id: appIcon
source: {
if (modelData.appIcon)
return "image://theme/" + modelData.appIcon
......@@ -85,10 +97,15 @@ Item {
id: appSummary
text: modelData.summary
font.pointSize: 10
anchors.left: appIcon.right
wrapMode: Text.WordWrap
}
Label {
text: modelData.body
font.pointSize: 8
wrapMode: Text.WordWrap
anchors.left: appSummary.right
}
}
}
}
......
Markdown is supported
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