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,23 +74,38 @@ Item { ...@@ -72,23 +74,38 @@ Item {
delegate: Row { delegate: Row {
spacing: 16 spacing: 16
height: 40 height: 40
Image { width: rootitem.width
source: { MouseArea {
if (modelData.appIcon) anchors.fill: parent
return "image://theme/" + modelData.appIcon onClicked: {
else if (modelData.userRemovable) {
return "" modelData.removeRequested()
}
} }
}
Label { Image {
id: appSummary id: appIcon
text: modelData.summary source: {
font.pointSize: 10 if (modelData.appIcon)
} return "image://theme/" + modelData.appIcon
Label { else
text: modelData.body return ""
font.pointSize: 8 }
}
Label {
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