Warning, /network/kdenetwork-filesharing/samba/aclproperties/qml/MainPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2021-2022 Harald Sitter <sitter@kde.org> 0003 0004 import QtQuick 2.15 0005 import QtQuick.Layouts 1.15 0006 import QtQuick.Controls 2.15 as QQC2 0007 import org.kde.kirigami 2.19 as Kirigami 0008 0009 import org.kde.filesharing.samba.acl 1.0 as Samba 0010 0011 Kirigami.ScrollablePage { 0012 id: page 0013 title: i18nc("@title", "Access Control Entries") 0014 0015 ListView { 0016 Layout.fillHeight: true 0017 Layout.fillWidth: true 0018 model: Samba.Context.aceModel 0019 delegate: QQC2.ItemDelegate { 0020 icon.name: ROLE_ACEObject.inherited ? "emblem-locked" : undefined 0021 text: ROLE_Sid 0022 onClicked: root.pageStack.push("qrc:/org.kde.filesharing.samba.acl/qml/ACEPage.qml", {title: ROLE_Sid, aceObject: ROLE_ACEObject}) 0023 } 0024 } 0025 0026 footer: QQC2.Control { 0027 contentItem: Kirigami.FormLayout { 0028 Kirigami.Separator { 0029 Kirigami.FormData.label: i18nc("@title file/folder owner info", "Ownership") 0030 Kirigami.FormData.isSection: true 0031 } 0032 QQC2.Label { 0033 Kirigami.FormData.label: i18nc("@label", "Owner:") 0034 text: Samba.Context.owner 0035 } 0036 QQC2.Label { 0037 Kirigami.FormData.label: i18nc("@label", "Group:") 0038 text: Samba.Context.group 0039 } 0040 } 0041 } 0042 }