Warning, /pim/itinerary/src/app/TouristAttractionDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import QtQuick.Layouts 0009 import QtQuick.Controls as QQC2 0010 import org.kde.kirigami as Kirigami 0011 import org.kde.itinerary 0012 0013 TimelineDelegate { 0014 id: root 0015 readonly property var touristAttraction: ReservationManager.reservation(root.batchId).touristAttraction 0016 0017 headerIconSource: "meeting-attending" // TODO better icon, e.g. something like 🎢? 0018 headerItem: RowLayout { 0019 QQC2.Label { 0020 text: touristAttraction.name 0021 color: root.headerTextColor 0022 Layout.fillWidth: true 0023 } 0024 QQC2.Label { 0025 text: Localizer.formatTime(reservation, "arrivalTime") 0026 color: root.headerTextColor 0027 } 0028 } 0029 0030 contentItem: Column { 0031 id: topLayout 0032 spacing: Kirigami.Units.smallSpacing 0033 0034 QQC2.Label { 0035 visible: text !== "" 0036 width: topLayout.width 0037 text: Localizer.formatAddressWithContext(touristAttraction.address, null, Settings.homeCountryIsoCode) 0038 } 0039 } 0040 0041 onClicked: showDetailsPage(touristAttractionDetailsPage, root.batchId) 0042 }