Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/main.qml
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 30 | MouseArea { | |||
---|---|---|---|---|---|
73 | //being there forces the items to fully load, and they will be reparented in the popup one by one, this item is *never* visible | 73 | //being there forces the items to fully load, and they will be reparented in the popup one by one, this item is *never* visible | ||
74 | Item { | 74 | Item { | ||
75 | id: preloadedStorage | 75 | id: preloadedStorage | ||
76 | visible: false | 76 | visible: false | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | Connections { | 79 | Connections { | ||
80 | target: plasmoid | 80 | target: plasmoid | ||
81 | onUserConfiguringChanged: { | 81 | function onUserConfiguringChanged(userConfiguring) { | ||
82 | if (plasmoid.userConfiguring) { | 82 | if (userConfiguring) { | ||
83 | dialog.visible = false | 83 | dialog.visible = false | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | Connections { | 88 | Connections { | ||
89 | target: plasmoid.configuration | 89 | target: plasmoid.configuration | ||
90 | 90 | | |||
91 | onExtraItemsChanged: plasmoid.nativeInterface.allowedPlasmoids = plasmoid.configuration.extraItems | 91 | function onExtraItemsChanged(extraItems) { | ||
92 | plasmoid.nativeInterface.allowedPlasmoids = extraItems | ||||
93 | } | ||||
92 | } | 94 | } | ||
93 | 95 | | |||
94 | CurrentItemHighLight { | 96 | CurrentItemHighLight { | ||
95 | readonly property bool visibleAppletActivated: root.activeApplet && root.activeApplet.parent && root.activeApplet.parent.inVisibleLayout | 97 | readonly property bool visibleAppletActivated: root.activeApplet && root.activeApplet.parent && root.activeApplet.parent.inVisibleLayout | ||
96 | parent: visibleAppletActivated ? root.activeApplet.parent : root | 98 | parent: visibleAppletActivated ? root.activeApplet.parent : root | ||
97 | target: visibleAppletActivated ? root.activeApplet.parent : root | 99 | target: visibleAppletActivated ? root.activeApplet.parent : root | ||
98 | location: plasmoid.location | 100 | location: plasmoid.location | ||
99 | } | 101 | } | ||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |