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