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 | function onUserConfiguringChanged(userConfiguring) { | 81 | function onUserConfiguringChanged() { | ||
kmaterka: `Plasma::Applet::userConfiguringChanged` sends value, but `Plasma::AppletInterface… | |||||
82 | if (userConfiguring) { | 82 | if (plasmoid.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 | function onExtraItemsChanged(extraItems) { | 91 | function onExtraItemsChanged() { | ||
I'm pretty sure this worked before... Maybe something changed in QQmlPropertyMap in Qt 5.14? kmaterka: I'm pretty sure this worked before... Maybe something changed in `QQmlPropertyMap` in Qt 5.14? | |||||
92 | plasmoid.nativeInterface.allowedPlasmoids = extraItems | 92 | plasmoid.nativeInterface.allowedPlasmoids = plasmoid.configuration.extraItems | ||
93 | } | 93 | } | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | CurrentItemHighLight { | 96 | CurrentItemHighLight { | ||
97 | 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 | ||
98 | parent: visibleAppletActivated ? root.activeApplet.parent : root | 98 | parent: visibleAppletActivated ? root.activeApplet.parent : root | ||
99 | target: visibleAppletActivated ? root.activeApplet.parent : root | 99 | target: visibleAppletActivated ? root.activeApplet.parent : root | ||
100 | location: plasmoid.location | 100 | location: plasmoid.location | ||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |
Plasma::Applet::userConfiguringChanged sends value, but Plasma::AppletInterface::userConfiguringChanged does not (signal has no parameters).