@@ -26,8 +26,10 @@ ListView {
27 property real margin
27 property real margin
28 property bool useModal
28 property bool useModal
29+ property int snapDecisionCount
30− useModal: false
32+ useModal: snapDecisionCount > 0
32 delegate: Notification {
34 delegate: Notification {
33 objectName: "notification" + index
35 objectName: "notification" + index
@@ -47,18 +49,6 @@ ListView {
47 maxHeight: notificationList.height
49 maxHeight: notificationList.height
48 margins: notificationList.margin
50 margins: notificationList.margin
51− if (notificationList.count > 1) {
52− notificationList.useModal = true;
57− if (notificationList.count <= 1) {
58− notificationList.useModal = false;
62 // make sure there's no opacity-difference between the several
52 // make sure there's no opacity-difference between the several
63 // elements in a notification
53 // elements in a notification
64 layer.enabled: add.running || remove.running || populate.running
54 layer.enabled: add.running || remove.running || populate.running