Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/main.qml
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 30 | MouseArea { | |||
---|---|---|---|---|---|
220 | //Main popup | 220 | //Main popup | ||
221 | PlasmaCore.Dialog { | 221 | PlasmaCore.Dialog { | ||
222 | id: dialog | 222 | id: dialog | ||
223 | visualParent: root | 223 | visualParent: root | ||
224 | flags: Qt.WindowStaysOnTopHint | 224 | flags: Qt.WindowStaysOnTopHint | ||
225 | location: plasmoid.location | 225 | location: plasmoid.location | ||
226 | hideOnWindowDeactivate: !plasmoid.configuration.pin | 226 | hideOnWindowDeactivate: !plasmoid.configuration.pin | ||
227 | 227 | | |||
228 | onVisibleChanged: { | 228 | function onVisibleChanged() { | ||
229 | if (!visible) { | 229 | if (!visible) { | ||
230 | plasmoid.status = PlasmaCore.Types.PassiveStatus; | 230 | plasmoid.status = PlasmaCore.Types.PassiveStatus; | ||
231 | if (root.activeApplet) { | 231 | if (root.activeApplet) { | ||
232 | root.activeApplet.expanded = false; | 232 | root.activeApplet.expanded = false; | ||
233 | } | 233 | } | ||
234 | } else { | 234 | } else { | ||
235 | plasmoid.status = PlasmaCore.Types.RequiresAttentionStatus; | 235 | plasmoid.status = PlasmaCore.Types.RequiresAttentionStatus; | ||
236 | } | 236 | } | ||
Show All 16 Lines |