KOSMIndoorMap

OSMElementInformationDialogStringDelegate.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.kosmindoormap
12/** OSM element info dialog delegate for graphically displaying textual entries. */
13RowLayout {
14 id: root
15
16 /** Key name. */
17 required property string keyLabel
18 /** Value category. */
19 required property int category
20 /** Value of this entry. */
21 required property string value
22
23 QQC2.Label {
24 visible: root.keyLabel !== ""
25 text: root.keyLabel + ":"
26 color: root.category === OSMElementInformationModel.DebugCategory ? Kirigami.Theme.disabledTextColor : Kirigami.Theme.textColor
27 Layout.alignment: Qt.AlignTop
28 }
29 QQC2.Label {
30 text: root.value
31 color: root.category === OSMElementInformationModel.DebugCategory ? Kirigami.Theme.disabledTextColor : Kirigami.Theme.textColor
32 wrapMode: Text.WordWrap
33 Layout.fillWidth: true
34 }
35}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.