no notifications message

This commit is contained in:
Marco Martin 2015-06-20 10:38:57 -07:00
parent 7c4cb2c00b
commit 7c1664f586

View file

@ -119,6 +119,18 @@ Item {
}
PlasmaCore.FrameSvgItem {
anchors.centerIn: parent
visible: notificationsModel.count == 0
imagePath: "widgets/background"
width: childrenRect.width + margins.left + margins.right
height: childrenRect.height + margins.top + margins.bottom
PlasmaComponents.Label {
anchors.centerIn: parent
text: i18n("No recent notifications")
}
}
ListModel {
id: notificationsModel