Warning, /system/drkonqi-pk-debug-installer/src/qml/DebugRepoPage.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.12 as Kirigami
0008 import org.kde.drkonqi.debug.installer.pk 1.0
0009 
0010 Kirigami.Page {
0011     id: page
0012     title: i18nc("@title", "Debug Symbols Sources")
0013 
0014     QQC2.BusyIndicator {
0015         id: busy
0016         anchors.centerIn: parent
0017         running: DebugRepoEnabler.busy
0018         visible: running
0019     }
0020 
0021     ColumnLayout {
0022         id: column
0023         anchors.fill: parent
0024         visible: !busy.visible
0025 
0026         Kirigami.Heading {
0027             id: label
0028 
0029             Layout.fillWidth: true
0030             Layout.alignment: Qt.AlignHCenter
0031             horizontalAlignment: Qt.AlignHCenter
0032 
0033             level: 2
0034             opacity: 0.5
0035 
0036             wrapMode: Text.WordWrap
0037             text: i18nc("@label/rich", "<p>Additional software sources need to be enabled on this system before debug symbols can be reliably resolved.</p><p>This can be undone in Discover.</p>")
0038        }
0039 
0040         QQC2.ScrollView {
0041             id: scrollView
0042 
0043             Layout.alignment: Qt.AlignHCenter
0044             Layout.fillWidth: true
0045             Layout.fillHeight: true
0046 
0047             Kirigami.Theme.colorSet: Kirigami.Theme.View
0048             Kirigami.Theme.inherit: false
0049             Component.onCompleted: background.visible = true // only injected and available once completed
0050 
0051             clip: true
0052 
0053             ListView {
0054                 clip: true
0055 
0056                 id: view
0057                 interactive: false
0058                 model: DebugRepoEnabler.components
0059 
0060                 delegate: Kirigami.BasicListItem {
0061                     hoverEnabled: ListView.interactive
0062                     label: modelData.name
0063                     subtitle: modelData.summary
0064                 }
0065             }
0066         }
0067 
0068         QQC2.Button {
0069             id: installButton
0070             Layout.alignment: Qt.AlignHCenter
0071             action: Kirigami.Action {
0072                 iconName: "install"
0073                 text: i18nc("@button", "Add Missing Software Sources")
0074                 onTriggered: DebugRepoEnabler.install()
0075             }
0076         }
0077     }
0078 }