Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationHeader.qml
Show All 33 Lines | |||||
34 | 34 | | |||
35 | RowLayout { | 35 | RowLayout { | ||
36 | id: notificationHeading | 36 | id: notificationHeading | ||
37 | property bool inGroup | 37 | property bool inGroup | ||
38 | property int notificationType | 38 | property int notificationType | ||
39 | 39 | | |||
40 | property var applicationIconSource | 40 | property var applicationIconSource | ||
41 | property string applicationName | 41 | property string applicationName | ||
42 | property string deviceName | 42 | property string originName | ||
43 | 43 | | |||
44 | property string configureActionLabel | 44 | property string configureActionLabel | ||
45 | 45 | | |||
46 | property alias configurable: configureButton.visible | 46 | property alias configurable: configureButton.visible | ||
47 | property alias dismissable: dismissButton.visible | 47 | property alias dismissable: dismissButton.visible | ||
48 | property bool dismissed | 48 | property bool dismissed | ||
49 | property alias closeButtonTooltip: closeButton.tooltip | 49 | property alias closeButtonTooltip: closeButton.tooltip | ||
50 | property alias closable: closeButton.visible | 50 | property alias closable: closeButton.visible | ||
Show All 32 Lines | 77 | PlasmaCore.IconItem { | |||
83 | visible: valid | 83 | visible: valid | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | PlasmaExtras.DescriptiveLabel { | 86 | PlasmaExtras.DescriptiveLabel { | ||
87 | id: applicationNameLabel | 87 | id: applicationNameLabel | ||
88 | Layout.fillWidth: true | 88 | Layout.fillWidth: true | ||
89 | textFormat: Text.PlainText | 89 | textFormat: Text.PlainText | ||
90 | elide: Text.ElideRight | 90 | elide: Text.ElideRight | ||
91 | text: notificationHeading.applicationName + (notificationHeading.deviceName ? " · " + notificationHeading.deviceName : "") | 91 | text: notificationHeading.applicationName + (notificationHeading.originName ? " · " + notificationHeading.originName : "") | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | PlasmaExtras.DescriptiveLabel { | 94 | PlasmaExtras.DescriptiveLabel { | ||
95 | id: ageLabel | 95 | id: ageLabel | ||
96 | 96 | | |||
97 | // the "n minutes ago" text, for jobs we show remaining time instead | 97 | // the "n minutes ago" text, for jobs we show remaining time instead | ||
98 | // updated periodically by a Timer hence this property with generate() function | 98 | // updated periodically by a Timer hence this property with generate() function | ||
99 | property string agoText: "" | 99 | property string agoText: "" | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |