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