Warning, /plasma/drkonqi/src/qml/PreviewPage.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: 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", "Preview the Report") 0015 0016 ColumnLayout { 0017 QQC2.Label { 0018 Layout.fillWidth: true 0019 wrapMode: Text.Wrap 0020 text: xi18nc("@label/rich", "<para>This is a preview of the report's contents which will be sent.</para><para>If you want to modify it go to the previous pages.</para>") 0021 } 0022 0023 // FIXME height is off maybe put the scrollview on the area instead of scrolling the page? 0024 QQC2.TextArea { 0025 Layout.fillWidth: true 0026 Layout.fillHeight: true 0027 implicitHeight: contentHeight 0028 readOnly: true 0029 text: reportInterface.generateReportFullText(ReportInterface.DrKonqiStamp.Include, ReportInterface.Backtrace.Complete) 0030 0031 } 0032 } 0033 0034 footer: FooterActionBar { 0035 actions: [ 0036 Kirigami.Action { 0037 iconName: "submit" 0038 text: i18nc("@action:button", "Submit") 0039 onTriggered: pageStack.push("qrc:/ui/SendingPage.qml") 0040 } 0041 ] 0042 } 0043 }