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