Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 427 Lines • ▼ Show 20 Line(s) | 422 | NotificationHeader { | |||
---|---|---|---|---|---|
428 | 428 | | |||
429 | configurable: model.configurable | 429 | configurable: model.configurable | ||
430 | closable: model.closable | 430 | closable: model.closable | ||
431 | closeButtonTooltip: i18n("Close Group") | 431 | closeButtonTooltip: i18n("Close Group") | ||
432 | 432 | | |||
433 | onCloseClicked: { | 433 | onCloseClicked: { | ||
434 | historyModel.close(historyModel.index(index, 0)) | 434 | historyModel.close(historyModel.index(index, 0)) | ||
435 | if (list.count === 0) { | 435 | if (list.count === 0) { | ||
436 | plasmoid.expanded = false; | 436 | root.closePassivePlasmoid(); | ||
437 | } | 437 | } | ||
438 | } | 438 | } | ||
439 | 439 | | |||
440 | onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) | 440 | onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) | ||
441 | } | 441 | } | ||
442 | } | 442 | } | ||
443 | 443 | | |||
444 | Component { | 444 | Component { | ||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 520 | if (addDefaultAction) { | |||
521 | labels.unshift(model.defaultActionLabel); | 521 | labels.unshift(model.defaultActionLabel); | ||
522 | } | 522 | } | ||
523 | return labels; | 523 | return labels; | ||
524 | } | 524 | } | ||
525 | 525 | | |||
526 | onCloseClicked: { | 526 | onCloseClicked: { | ||
527 | historyModel.close(historyModel.index(index, 0)); | 527 | historyModel.close(historyModel.index(index, 0)); | ||
528 | if (list.count === 0) { | 528 | if (list.count === 0) { | ||
529 | plasmoid.expanded = false; | 529 | root.closePassivePlasmoid(); | ||
530 | } | 530 | } | ||
531 | } | 531 | } | ||
532 | onDismissClicked: { | 532 | onDismissClicked: { | ||
533 | model.dismissed = false; | 533 | model.dismissed = false; | ||
534 | plasmoid.expanded = false; | 534 | root.closePassivePlasmoid(); | ||
535 | } | 535 | } | ||
536 | onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) | 536 | onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) | ||
537 | 537 | | |||
538 | onActionInvoked: { | 538 | onActionInvoked: { | ||
539 | if (actionName === "default") { | 539 | if (actionName === "default") { | ||
540 | historyModel.invokeDefaultAction(historyModel.index(index, 0)); | 540 | historyModel.invokeDefaultAction(historyModel.index(index, 0)); | ||
541 | } else { | 541 | } else { | ||
542 | historyModel.invokeAction(historyModel.index(index, 0), actionName); | 542 | historyModel.invokeAction(historyModel.index(index, 0), actionName); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |