18 import Ubuntu.Components 0.1
19 import Unity.Notifications 1.0 as UnityNotifications
21 import
"../Components"
26 objectName:
"notificationList"
30 property bool useModal: snapDecisionProxyModel.count > 0
32 SortFilterProxyModel {
33 id: snapDecisionProxyModel
35 model: notificationList.model
36 filterRole: UnityNotifications.ModelInterface.RoleType
37 filterRegExp: RegExp(UnityNotifications.Notification.SnapDecision)
39 spacing: delegate.fullscreen ? 0 : units.gu(.5)
41 currentIndex: (currentIndex < 1 && count > 1) ? 1 : -1
43 delegate: Notification {
44 objectName:
"notification" + index
51 iconSource: model.icon
52 secondaryIconSource: model.secondaryIcon
53 summary: model.summary
55 actions: model.actions
56 notificationId: model.id
57 notification: notificationList.model.getRaw(notificationId)
58 maxHeight: notificationList.height
59 margins: notificationList.margin
63 layer.enabled: add.running ||
remove.running || populate.running
66 populate: Transition {
67 UbuntuNumberAnimation {
70 duration: UbuntuAnimation.SnapDuration
75 UbuntuNumberAnimation {
78 duration: UbuntuAnimation.SnapDuration
83 UbuntuNumberAnimation {
89 displaced: Transition {
90 UbuntuNumberAnimation {
92 duration: UbuntuAnimation.SnapDuration