Warning, /plasma/xdg-desktop-portal-kde/src/AccessDialog.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 */ 0004 0005 import QtQuick 2.15 0006 import QtQuick.Layouts 1.15 0007 import QtQuick.Controls 2.15 as QQC2 0008 import org.kde.kirigami 2.14 as Kirigami 0009 import org.kde.plasma.workspace.dialogs 1.0 as PWD 0010 0011 PWD.SystemDialog 0012 { 0013 id: root 0014 property alias body: bodyLabel.text 0015 property string acceptLabel: "" 0016 property string rejectLabel: "" 0017 0018 QQC2.Label { 0019 id: bodyLabel 0020 Layout.fillWidth: true 0021 wrapMode: Text.WordWrap 0022 } 0023 0024 standardButtons: QQC2.DialogButtonBox.Ok | QQC2.DialogButtonBox.Cancel 0025 Component.onCompleted: { 0026 if (root.acceptLabel.length > 0) { 0027 dialogButtonBox.button(QQC2.DialogButtonBox.Ok).text = root.acceptLabel 0028 } 0029 if (root.rejectLabel.length > 0) { 0030 dialogButtonBox.button(QQC2.DialogButtonBox.Cancel).text = root.rejectLabel 0031 } 0032 } 0033 }