KOSMIndoorMap

IndoorMapAttributionLabel.qml
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8import QtQuick.Controls as QQC2
9
10Item {
11 id: root
12
13 implicitHeight: background.height
14 implicitWidth: background.width
15
16 property int __margin: 2
17
18 Rectangle {
19 id: background
20 color: label.palette.base
21 opacity: 0.5
22 height: label.implicitHeight + 2 * root.__margin
23 width: label.implicitWidth
24 }
25
26 QQC2.Label {
27 text: i18nd("kosmindoormap", "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a>");
28 id: label
29 font.pointSize: 7;
30 anchors.centerIn: background
31
32 onLinkActivated: (link) => Qt.openUrlExternally(link)
33 }
34}
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.