Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/JobDelegate.qml
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 28 | Column { | |||
---|---|---|---|---|---|
58 | RowLayout { | 58 | RowLayout { | ||
59 | width: parent.width | 59 | width: parent.width | ||
60 | 60 | | |||
61 | PlasmaComponents.Label { | 61 | PlasmaComponents.Label { | ||
62 | id: summary | 62 | id: summary | ||
63 | Layout.fillWidth: true | 63 | Layout.fillWidth: true | ||
64 | elide: Text.ElideMiddle | 64 | elide: Text.ElideMiddle | ||
65 | text: { | 65 | text: { | ||
66 | var labelSplit = label0.split("/") | 66 | var label = label0; | ||
67 | return labelSplit[labelSplit.length-1] | 67 | var lastSlashIdx = label.lastIndexOf("/"); | ||
68 | return label.slice(lastSlashIdx + 1); | ||||
68 | } | 69 | } | ||
69 | textFormat: Text.PlainText | 70 | textFormat: Text.PlainText | ||
70 | } | 71 | } | ||
71 | 72 | | |||
72 | PlasmaComponents.ToolButton { | 73 | PlasmaComponents.ToolButton { | ||
73 | id: expandButton | 74 | id: expandButton | ||
74 | iconSource: checked ? "arrow-down" : (LayoutMirroring.enabled ? "arrow-left" : "arrow-right") | 75 | iconSource: checked ? "arrow-down" : (LayoutMirroring.enabled ? "arrow-left" : "arrow-right") | ||
75 | tooltip: checked ? i18nc("A button tooltip; hides item details", "Hide Details") | 76 | tooltip: checked ? i18nc("A button tooltip; hides item details", "Hide Details") | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |