Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/items/StatusNotifierItem.qml
Show All 37 Lines | 34 | status: { | |||
---|---|---|---|---|---|
38 | case "NeedsAttention": | 38 | case "NeedsAttention": | ||
39 | return PlasmaCore.Types.NeedsAttentionStatus; | 39 | return PlasmaCore.Types.NeedsAttentionStatus; | ||
40 | //just assume passive | 40 | //just assume passive | ||
41 | default: | 41 | default: | ||
42 | return PlasmaCore.Types.PassiveStatus; | 42 | return PlasmaCore.Types.PassiveStatus; | ||
43 | } | 43 | } | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | onStatusChanged: { | ||||
47 | //binding is not working in PlasmaCore.IconItem | ||||
48 | iconItem.source = status === PlasmaCore.Types.NeedsAttentionStatus ? (AttentionIcon ? AttentionIcon : AttentionIconName) : (Icon ? Icon : IconName) | ||||
49 | } | ||||
50 | | ||||
46 | iconItem: iconItem | 51 | iconItem: iconItem | ||
47 | 52 | | |||
48 | PlasmaCore.IconItem { | 53 | PlasmaCore.IconItem { | ||
49 | id: iconItem | 54 | id: iconItem | ||
50 | source: Icon ? Icon : IconName | 55 | source: Icon ? Icon : IconName | ||
51 | width: Math.min(parent.width, parent.height) | 56 | width: Math.min(parent.width, parent.height) | ||
52 | height: width | 57 | height: width | ||
53 | active: taskIcon.containsMouse | 58 | active: taskIcon.containsMouse | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |