@@ -327,14 +327,83 @@ Item {
329 ComboButton {
329 ComboButton {
330 width: parent.width
332 width: parent.width
332− visible: notification.type == Notification.SnapDecision && actionRepeater.count > 2
333+ visible: notification.type == Notification.SnapDecision && actionRepeater.count > 4
333 gradient: darkgreyGradient
334 gradient: darkgreyGradient
334− onClicked: print ("Clicked on " + text)
335+ onClicked: notification.notification.invokeAction(localRepeater.itemAt(2).actionId)
335 expanded: false
336 expanded: false
336− expandedHeight: (actionRepeater.count) * units.gu(5) + units.gu(.5)
337+ expandedHeight: (localRepeater.count) * units.gu(5) + units.gu(.5)
342+ Component.onCompleted: {
343+ // an assignment is ok here, since this
344+ // label is static and does not change
345+ localButton.text = localRepeater.itemAt(2).actionLabel
348+ model: notification.actions
350+ property string actionId: id
351+ property string actionLabel: label
360+ width: localButton.width
361+ height: localIcon.height + units.gu(2)
364+ notification.notification.invokeAction(actionId)
367+ ListItem.ThinDivider {
376+ leftMargin: units.gu(.5)
378+ topMargin: units.gu(1)
379+ bottom: parent.bottom
380+ bottomMargin: units.gu(1)
391+ anchors.left: localIcon.right
392+ anchors.leftMargin: units.gu(1)
393+ anchors.verticalCenter: localIcon.verticalCenter
394+ verticalAlignment: Text.AlignVCenter
395+ height: localIcon.height
402+ sourceComponent: (index > 2) ? myEntry : undefined
337− comboList: ListView {
406+ /*ListView {
338 id: myView
407 id: myView
340 width: parent.width
409 width: parent.width
@@ -392,8 +461,9 @@ Item {
392 text: label
461 text: label