KIdentityManagement

IdentityConfigurationForm.qml
1// SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Layouts
6import QtQuick.Controls as QQC2
7
8import org.kde.kirigami 2.20 as Kirigami
9import org.kde.kirigamiaddons.formcard 1.0 as FormCard
10import org.kde.kidentitymanagement 1.0
11
12FormCard.FormCard {
13 id: root
14
15 readonly property IdentityModel _identityModel: IdentityModel {}
16 property var cryptographyEditorBackend: CryptographyEditorBackend {}
17
18 Repeater {
19 id: identityRepeater
20
21 model: root._identityModel
22
23 delegate: FormCard.FormButtonDelegate {
24 leadingPadding: Kirigami.Units.largeSpacing
25 text: model.display
26 onClicked: {
27 pageStack.pushDialogLayer(Qt.resolvedUrl("IdentityEditorPage.qml"), {
28 mode: IdentityEditorBackend.EditMode,
29 identityUoid: model.uoid,
30 allowDelete: identityRepeater.count > 1,
31 identityName: model.display,
32 cryptographyEditorBackend: root.cryptographyEditorBackend
33 }, {title: i18nc("@title", "Edit Identity")});
34 }
35 }
36 }
37}
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.