Warning, /network/neochat/src/qml/Terms.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 import QtQuick 0005 import QtQuick.Layouts 0006 0007 import org.kde.kirigami as Kirigami 0008 import org.kde.kirigamiaddons.formcard as FormCard 0009 0010 import org.kde.neochat 0011 0012 LoginStep { 0013 id: root 0014 0015 noControls: true 0016 0017 FormCard.FormTextDelegate { 0018 text: i18n("Terms & Conditions") 0019 description: i18n("By continuing with the registration, you agree to the following terms and conditions:") 0020 } 0021 0022 Repeater { 0023 model: Registration.terms 0024 delegate: FormCard.FormTextDelegate { 0025 text: "<a href=\"" + modelData.url + "\">" + modelData.title + "</a>" 0026 onLinkActivated: Qt.openUrlExternally(modelData.url) 0027 } 0028 } 0029 0030 nextAction: Kirigami.Action { 0031 onTriggered: { 0032 Registration.registerAccount(); 0033 } 0034 } 0035 previousAction: Kirigami.Action { 0036 onTriggered: root.processed("qrc:/org/kde/neochat/qml/Username.qml") 0037 } 0038 }