Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationHeader.qml
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 84 | PlasmaCore.IconItem { | |||
---|---|---|---|---|---|
87 | Layout.preferredHeight: units.iconSizes.small | 87 | Layout.preferredHeight: units.iconSizes.small | ||
88 | source: notificationHeading.applicationIconSource | 88 | source: notificationHeading.applicationIconSource | ||
89 | usesPlasmaTheme: false | 89 | usesPlasmaTheme: false | ||
90 | visible: valid | 90 | visible: valid | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | PlasmaExtras.DescriptiveLabel { | 93 | PlasmaExtras.DescriptiveLabel { | ||
94 | id: applicationNameLabel | 94 | id: applicationNameLabel | ||
95 | Layout.fillWidth: true | | |||
96 | textFormat: Text.PlainText | 95 | textFormat: Text.PlainText | ||
97 | elide: Text.ElideLeft | 96 | elide: Text.ElideLeft | ||
98 | text: notificationHeading.applicationName + (notificationHeading.originName ? " · " + notificationHeading.originName : "") | 97 | text: notificationHeading.applicationName + (notificationHeading.originName ? " · " + notificationHeading.originName : "") | ||
99 | } | 98 | } | ||
100 | 99 | | |||
100 | Item { | ||||
101 | id: spacer | ||||
102 | Layout.fillWidth: true | ||||
103 | } | ||||
104 | | ||||
101 | PlasmaExtras.DescriptiveLabel { | 105 | PlasmaExtras.DescriptiveLabel { | ||
102 | id: ageLabel | 106 | id: ageLabel | ||
103 | 107 | | |||
104 | // the "n minutes ago" text, for jobs we show remaining time instead | 108 | // the "n minutes ago" text, for jobs we show remaining time instead | ||
105 | // updated periodically by a Timer hence this property with generate() function | 109 | // updated periodically by a Timer hence this property with generate() function | ||
106 | property string agoText: "" | 110 | property string agoText: "" | ||
107 | visible: text !== "" | 111 | visible: text !== "" | ||
108 | text: generateRemainingText() || agoText | 112 | text: generateRemainingText() || agoText | ||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |