Warning, /system/drkonqi-pk-debug-installer/src/qml/FilePage.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: 2020 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.4 as Kirigami 0008 import org.kde.drkonqi.debug.installer.pk 1.0 0009 0010 Kirigami.ScrollablePage { 0011 property QtObject file // File instance actually; not registered in type system 0012 0013 title: file.path 0014 0015 ColumnLayout { 0016 Layout.fillWidth: true 0017 0018 Kirigami.FormLayout { 0019 Layout.fillWidth: true 0020 0021 FilePropertyLabel { 0022 Kirigami.FormData.label: i18nc("@label", "PackageKit ID:") 0023 Layout.fillWidth: true 0024 prop: file.packageID 0025 } 0026 0027 FilePropertyLabel { 0028 Kirigami.FormData.label: i18nc("@label", "Source Package:") 0029 Layout.fillWidth: true 0030 prop: file.sourcePackage 0031 } 0032 0033 FilePropertyLabel { 0034 Kirigami.FormData.label: i18nc("@label", "Debug PackageKit ID:") 0035 Layout.fillWidth: true 0036 prop: file.debugPackageID 0037 } 0038 0039 QQC2.Label { 0040 Kirigami.FormData.label: i18nc("@label package installation status", "Status:") 0041 Layout.fillWidth: true 0042 visible: file.debugPackageID !== "" 0043 text: file.debugPackageInstalled ? 0044 i18nc("info:status", "Debug package already installed") : 0045 i18nc("info:status", "Debug package not yet installed") 0046 color: file.debugPackageInstalled ? 0047 Kirigami.Theme.positiveTextColor : 0048 Kirigami.Theme.negativeTextColor 0049 wrapMode: Text.Wrap 0050 } 0051 } 0052 0053 QQC2.TextArea { 0054 Layout.fillWidth: true 0055 Layout.fillHeight: true 0056 visible: file.diagnosticData !== "" 0057 text: file.diagnosticData 0058 readOnly: true 0059 } 0060 } 0061 }