Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/container/package/contents/ui/main.qml
Show All 26 Lines | 25 | Item { | |||
---|---|---|---|---|---|
27 | 27 | | |||
28 | Layout.minimumWidth: internalSystray ? internalSystray.Layout.minimumWidth : 0 | 28 | Layout.minimumWidth: internalSystray ? internalSystray.Layout.minimumWidth : 0 | ||
29 | Layout.minimumHeight: internalSystray ? internalSystray.Layout.minimumHeight : 0 | 29 | Layout.minimumHeight: internalSystray ? internalSystray.Layout.minimumHeight : 0 | ||
30 | Layout.preferredHeight: Layout.minimumHeight | 30 | Layout.preferredHeight: Layout.minimumHeight | ||
31 | 31 | | |||
32 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | 32 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | ||
33 | Plasmoid.status: internalSystray ? internalSystray.status : PlasmaCore.Types.UnknownStatus | 33 | Plasmoid.status: internalSystray ? internalSystray.status : PlasmaCore.Types.UnknownStatus | ||
34 | 34 | | |||
35 | Plasmoid.onExpandedChanged: { | ||||
36 | if (internalSystray && !plasmoid.expanded) { | ||||
37 | internalSystray.expanded = false; | ||||
38 | } | ||||
39 | } | ||||
40 | Connections { | ||||
41 | target: internalSystray | ||||
42 | onExpandedChanged: plasmoid.expanded = internalSystray.expanded | ||||
43 | } | ||||
44 | | ||||
35 | property Item internalSystray | 45 | property Item internalSystray | ||
36 | 46 | | |||
37 | Component.onCompleted: { | 47 | Component.onCompleted: { | ||
38 | root.internalSystray = plasmoid.nativeInterface.internalSystray; | 48 | root.internalSystray = plasmoid.nativeInterface.internalSystray; | ||
39 | 49 | | |||
40 | if (root.internalSystray == null) { | 50 | if (root.internalSystray == null) { | ||
41 | return; | 51 | return; | ||
42 | } | 52 | } | ||
Show All 13 Lines |