Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/applet/CompactApplet.qml
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 65 | case PlasmaCore.Types.Vertical: | |||
---|---|---|---|---|---|
66 | return width; | 66 | return width; | ||
67 | case PlasmaCore.Types.Horizontal: | 67 | case PlasmaCore.Types.Horizontal: | ||
68 | return 0; | 68 | return 0; | ||
69 | default: | 69 | default: | ||
70 | return units.gridUnit * 3; | 70 | return units.gridUnit * 3; | ||
71 | } | 71 | } | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | onCompactRepresentationChanged: { | 74 | function onCompactRepresentationChanged() { | ||
75 | if (compactRepresentation) { | 75 | if (compactRepresentation) { | ||
76 | compactRepresentation.parent = appletRoot; | 76 | compactRepresentation.parent = appletRoot; | ||
77 | compactRepresentation.anchors.fill = appletRoot; | 77 | compactRepresentation.anchors.fill = appletRoot; | ||
78 | compactRepresentation.visible = true; | 78 | compactRepresentation.visible = true; | ||
79 | } | 79 | } | ||
80 | appletRoot.visible = true; | 80 | appletRoot.visible = true; | ||
81 | } | 81 | } | ||
82 | } | 82 | } | ||
83 | 83 | |