Warning, /libraries/kosmindoormap/src/map-quick/IndoorMapAttributionLabel.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import QtQuick.Controls as QQC2
0009 
0010 Item {
0011     id: root
0012 
0013     implicitHeight: background.height
0014     implicitWidth: background.width
0015 
0016     property int __margin: 2
0017 
0018     Rectangle {
0019         id: background
0020         color: label.palette.base
0021         opacity: 0.5
0022         height: label.implicitHeight + 2 * root.__margin
0023         width: label.implicitWidth
0024     }
0025 
0026     QQC2.Label {
0027         text: i18nd("kosmindoormap", "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a>");
0028         id: label
0029         font.pointSize: 7;
0030         anchors.centerIn: background
0031 
0032         onLinkActivated: (link) => Qt.openUrlExternally(link)
0033     }
0034 }