KOSMIndoorMap

OSMElementInformationDialogAddressDelegate.qml
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6import QtQuick
7import QtQuick.Layouts
8import QtQuick.Controls as QQC2
9import org.kde.kirigami as Kirigami
10import org.kde.contacts as KContacts
12/** OSM element info dialog delegate for graphically displaying link entries. */
13RowLayout {
14 id: root
15
16 /** OSMAddress instance to display. */
17 required property var address
18
19 QQC2.Label {
20 id: label
21 property KContacts.address addr: ({
22 country: root.address.country,
23 region: root.address.state,
24 locality: root.address.city,
25 postalCode: root.address.postalCode,
26 street: root.address.street
27 })
28 text: label.addr.formatted(KContacts.KContacts.AddressFormatStyle.MultiLineInternational)
29 }
30}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.