Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/StreamListItem.qml
Show All 19 Lines | |||||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | 22 | | |||
23 | import org.kde.plasma.components 2.0 as PlasmaComponents | 23 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | 24 | | |||
25 | import org.kde.plasma.private.volume 0.1 | 25 | import org.kde.plasma.private.volume 0.1 | ||
26 | 26 | | |||
27 | ListItemBase { | 27 | ListItemBase { | ||
28 | label: Client ? Client.name : Name | 28 | label: { | ||
29 | if (Client && Client.name) { | ||||
30 | return Client.name; | ||||
31 | } | ||||
32 | if (Name) { | ||||
33 | return Name; | ||||
34 | } | ||||
35 | return i18n("Stream name not found"); | ||||
ngraham: ditto | |||||
36 | } | ||||
37 | | ||||
29 | icon: IconName | 38 | icon: IconName | ||
30 | iconUsesPlasmaTheme: false | 39 | iconUsesPlasmaTheme: false | ||
31 | } | 40 | } |
ditto