Warning, /plasma/drkonqi/src/qml/WelcomePage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0002 // SPDX-FileCopyrightText: 2021-2022 Harald Sitter <sitter@kde.org>
0003 
0004 import QtQuick 2.15
0005 import QtQuick.Layouts 1.15
0006 import QtQuick.Controls 2.15 as QQC2
0007 import org.kde.kirigami 2.19 as Kirigami
0008 
0009 import org.kde.drkonqi 1.0
0010 
0011 Kirigami.ScrollablePage {
0012     id: page
0013 
0014     title: i18nc("@title:window", "Welcome to the Reporting Assistant")
0015 
0016     ColumnLayout {
0017         QQC2.Label {
0018             Layout.fillWidth: true
0019             text: xi18nc("@info/rich", `This assistant will analyze the crash information and guide you through the bug reporting process.`)
0020             wrapMode: Text.Wrap
0021         }
0022         RowLayout {
0023             Kirigami.Icon {
0024                 implicitWidth: Kirigami.Units.iconSizes.large
0025                 implicitHeight: implicitWidth
0026                 source: "dialog-warning"
0027             }
0028 
0029             QQC2.Label {
0030                 Layout.fillWidth: true
0031                 text: xi18nc("@info/rich note before starting the bug reporting process",
0032 `<para><note>Since communication between you and the developers is required for effective debugging,
0033 to continue reporting this bug it is <emphasis strong='true'>required for you to agree that developers may contact you</emphasis>.
0034 </note></para><para>Feel free to close this dialog if you do not accept this.</para>`)
0035                 wrapMode: Text.Wrap
0036             }
0037         }
0038         // FIXME: maybe even disable i18n for the rest of the dialog seeing as one must be proficient enough in english
0039     }
0040 
0041     footer: FooterActionBar {
0042         actions: [
0043             Kirigami.Action {
0044                 iconName: "document-sign"
0045                 text: i18nc("@action:button", "I Agree to be Contacted")
0046                 onTriggered: {
0047                     visible = false
0048                     pageStack.push("qrc:/ui/ContextPage.qml")
0049                 }
0050                 visible: true
0051             }
0052         ]
0053     }
0054 }