Warning, /plasma/discover/libdiscover/backends/PackageKitBackend/qml/PackageKitPermissions.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 import QtQuick
0008 import QtQuick.Layouts
0009 import org.kde.discover as Discover
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.kirigami.delegates as KD
0012 
0013 ColumnLayout {
0014     id: root
0015 
0016     required property Discover.AbstractResource resource
0017 
0018     spacing: Kirigami.Units.smallSpacing
0019 
0020     Kirigami.Heading {
0021         Layout.fillWidth: true
0022         text: i18ndc("libdiscover", "%1 is the name of the application", "Permissions for %1", root.resource.name)
0023         level: 2
0024         type: Kirigami.Heading.Type.Primary
0025         wrapMode: Text.Wrap
0026     }
0027 
0028     KD.SubtitleDelegate {
0029         Layout.fillWidth: true
0030         text: i18nd("libdiscover","Full Access")
0031         subtitle: i18nd("libdiscover", "Can access everything on the system")
0032         icon.name: "security-medium"
0033 
0034         // so that it gets neither hover nor pressed appearance
0035         hoverEnabled: false
0036         down: false
0037     }
0038 }