~mzanetti/unity8/hide-settings-count-emblem

« back to all changes in this revision

Viewing changes to qml/Notifications/Notifications.qml

Allow swipe-to-dismiss for contracted snap-decision notifications, interactive notifications and ephemeral notifications. Fixes: #1334855, #1355422
Approved by: Michał Sawicz, PS Jenkins bot, Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    property bool topmostIsFullscreen: false
42
42
    spacing: topmostIsFullscreen ? 0 : units.gu(.5)
43
43
 
44
 
    // FIXME: This doesn't make any sense and results in a binding loop
45
 
    currentIndex: (currentIndex < 1 && count > 1) ? 1 : -1
 
44
    currentIndex: count > 1 ? 1 : -1
46
45
 
47
46
    delegate: Notification {
48
47
        objectName: "notification" + index
49
 
        anchors {
50
 
            left: parent.left
51
 
            right: parent.right
52
 
        }
 
48
        width: parent.width
53
49
        type: model.type
54
50
        hints: model.hints
55
51
        iconSource: model.icon