Warning, /graphics/optiimage/src/contents/ui/LogOutputPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2024 Carl Schwan <carlschwan@kde.org> 0002 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 0004 import QtQuick 0005 import org.kde.kirigami as Kirigami 0006 import org.kde.kirigamiaddons.delegates as Delegates 0007 import org.kde.kirigamiaddons.components as Components 0008 import QtQuick.Controls as QQC2 0009 import QtQuick.Layouts 0010 import Qt.labs.platform 0011 import org.kde.optiimage 0012 import org.kde.coreaddons 0013 0014 Kirigami.ScrollablePage { 0015 title: i18nc("@title", "Console output") 0016 ListView { 0017 id: logView 0018 0019 currentIndex: -1 0020 0021 model: ConsoleLog 0022 0023 delegate: Delegates.RoundedItemDelegate { 0024 id: logOutputDelegate 0025 0026 required property int index 0027 required property string output 0028 required property string imagePath 0029 0030 background: null 0031 contentItem: ColumnLayout { 0032 width: parent.width 0033 spacing: Kirigami.Units.smallSpacing 0034 0035 Kirigami.Separator { 0036 Layout.fillWidth: true 0037 visible: logOutputDelegate.index !== 0 0038 } 0039 0040 Kirigami.Heading { 0041 level: 3 0042 text: logOutputDelegate.imagePath 0043 elide: Text.ElideMiddle 0044 Layout.fillWidth: true 0045 } 0046 0047 QQC2.Label { 0048 text: logOutputDelegate.output 0049 wrapMode: TextEdit.WordWrap 0050 Layout.fillWidth: true 0051 } 0052 } 0053 } 0054 0055 Kirigami.PlaceholderMessage { 0056 visible: logView.count === 0 0057 text: i18n("No log output") 0058 width: parent.width - Kirigami.Units.gridUnit * 4 0059 anchors.centerIn: parent 0060 } 0061 } 0062 }