Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/SnapBackend/snapui/PermissionsButton.qml
- This file was moved from libdiscover/backends/SnapBackend/qml/PermissionsButton.qml.
Context not available. | |||||
30 | onClicked: overlay.open() | 30 | onClicked: overlay.open() | ||
---|---|---|---|---|---|
31 | visible: view.count > 0 | 31 | visible: view.count > 0 | ||
32 | 32 | | |||
33 | DiscoverPopup { | 33 | Popup { | ||
34 | id: overlay | 34 | id: overlay | ||
35 | parent: applicationWindow().overlay | ||||
36 | bottomPadding: Kirigami.Units.largeSpacing | ||||
37 | topPadding: Kirigami.Units.largeSpacing | ||||
38 | | ||||
39 | x: (parent.width - width)/2 | ||||
40 | y: (parent.height - height)/2 | ||||
41 | width: parent.width * 1/3 | ||||
42 | height: Math.min(view.contentHeight + bottomPadding + topPadding, parent.height * 4/5) | ||||
35 | 43 | | |||
36 | ListView { | 44 | ListView { | ||
37 | id: view | 45 | id: view | ||
38 | anchors.fill: parent | 46 | anchors.fill: parent | ||
39 | header: Kirigami.ItemViewHeader { | 47 | header: Kirigami.Heading { | ||
40 | text: i18n ("Permissions for %1", resource.name) | 48 | text: i18n ("Permissions for %1", resource.name) | ||
41 | } | 49 | } | ||
42 | model: resource.plugs(root) | 50 | model: resource.plugs(root) | ||
Context not available. |