Warning, /libraries/kosmindoormap/src/app/AttributionPage.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import QtQuick.Layouts 0009 import QtQuick.Controls as QQC2 0010 import org.kde.kirigami as Kirigami 0011 0012 Kirigami.ScrollablePage { 0013 id: root 0014 title: "Data Sources" 0015 property var publicTransportManager 0016 0017 Component { 0018 id: attributionDelegate 0019 QQC2.ItemDelegate { 0020 width: ListView.view.width 0021 highlighted: false 0022 contentItem: ColumnLayout { 0023 QQC2.Label { 0024 Layout.fillWidth: true 0025 wrapMode: Text.WordWrap 0026 text: "<a href=\"" + modelData.url + "\">" + modelData.name + "</a>" 0027 onLinkActivated: Qt.openUrlExternally(link) 0028 } 0029 QQC2.Label { 0030 Layout.fillWidth: true 0031 text: "License: <a href=\"" + modelData.liceseUrl + "\">" + (modelData.license != "" ? modelData.license : modelData.licenseUrl) + "</a>" 0032 onLinkActivated: Qt.openUrlExternally(link) 0033 visible: modelData.hasLicense 0034 wrapMode: Text.WordWrap 0035 } 0036 } 0037 } 0038 } 0039 0040 ListView { 0041 model: publicTransportManager.attributions 0042 delegate: attributionDelegate 0043 } 0044 }