~aacid/unity8/fix_cropped_image_binding_loop

« back to all changes in this revision

Viewing changes to qml/Notifications/Notifications.qml

  • Committer: CI Train Bot
  • Author(s): Lukáš Tinkl
  • Date: 2015-09-25 12:12:43 UTC
  • mfrom: (1968.2.6 clickNotifications)
  • Revision ID: ci-train-bot@canonical.com-20150925121243-teq4pdo0mdp6uqxd
Using InputInfo, determine if we need swipe or click to dismiss the notifications (e.g. incoming phone call)
Approved by: Michael Zanetti

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    property real margin
30
30
    property bool useModal: snapDecisionProxyModel.count > 0
 
31
    property bool hasMouse
31
32
 
32
33
    UnitySortFilterProxyModel {
33
34
        id: snapDecisionProxyModel
52
53
        secondaryIconSource: model.secondaryIcon
53
54
        summary: model.summary
54
55
        body: model.body
55
 
        value: model.value
 
56
        value: model.value ? model.value : -1
56
57
        actions: model.actions
57
58
        notificationId: model.id
58
59
        notification: notificationList.model.getRaw(notificationId)
59
60
        maxHeight: notificationList.height
60
61
        margins: notificationList.margin
 
62
        hasMouse: notificationList.hasMouse
61
63
 
62
64
        // make sure there's no opacity-difference between the several
63
65
        // elements in a notification