Warning, /plasma/xdg-desktop-portal-kde/src/UserInfoDialog.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Red Hat Inc
0003  * SPDX-License-Identifier: LGPL-2.0-or-later
0004  *
0005  * SPDX-FileCopyrightText: 2020 Jan Grulich <jgrulich@redhat.com>
0006  * SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
0007  */
0008 
0009 import QtQuick 2.15
0010 import QtQuick.Layouts 1.15
0011 import QtQuick.Controls 2.15 as QQC2
0012 import org.kde.kirigami 2.14 as Kirigami
0013 import org.kde.plasma.workspace.dialogs 1.0 as PWD
0014 
0015 PWD.SystemDialog
0016 {
0017     id: root
0018     property alias reason: reasonLabel.text
0019     property alias userName: idText.text
0020     property alias realName: nameText.text
0021 
0022     ColumnLayout {
0023         Kirigami.Heading {
0024             id: nameText
0025             Layout.fillWidth: true
0026         }
0027         Kirigami.Heading {
0028             id: idText
0029             Layout.fillWidth: true
0030             level: 3
0031         }
0032 
0033         QQC2.Label {
0034             id: reasonLabel
0035             Layout.fillWidth: true
0036             wrapMode: Text.WordWrap
0037         }
0038     }
0039     standardButtons: QQC2.DialogButtonBox.Ok | QQC2.DialogButtonBox.Cancel
0040     Component.onCompleted: {
0041         dialogButtonBox.standardButton(QQC2.DialogButtonBox.Ok).text = i18n("Share")
0042     }
0043 }