@@ -16,6 +16,8 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19+import Unity.Notifications 1.0 as UnityNotifications
19import "../Components"
21import "../Components"
@@ -26,10 +28,16 @@ ListView {
27 property real margin
29 property real margin
28 property bool useModal
30 property bool useModal
29− property int snapDecisionCount
31− snapDecisionCount: 0
32+ useModal: snapDecisionProxyModel.count > 0
32− useModal: snapDecisionCount > 0
33+
34+ SortFilterProxyModel {
35+ id: snapDecisionProxyModel
37+ model: notificationList.model
38+ filterRole: UnityNotifications.Model.RoleType
39+ filterRegExp: RegExp(UnityNotifications.Notification.SnapDecision)
34 delegate: Notification {
42 delegate: Notification {
35 objectName: "notification" + index
43 objectName: "notification" + index