KOSMIndoorMap

IndoorMapAttributionLabel.qml
1 /*
2  SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 import QtQuick 2.12
8 import QtQuick.Controls 2.12 as QQC2
9 
10 Item {
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 * __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: Qt.openUrlExternally(link)
33  }
34 }
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:04:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.