Warning, /utilities/ktrip/src/qml/ConnectionHeading.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 * SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 import QtQuick 2.2 0008 import QtQuick.Layouts 1.1 0009 import QtQuick.Controls 2.4 0010 import org.kde.kirigami 2.4 as Kirigami 0011 import org.kde.kpublictransport 1.0 as KPT 0012 import org.kde.ktrip 1.0 0013 0014 Row { 0015 id: root 0016 property var journey 0017 0018 spacing: Kirigami.Units.smallSpacing 0019 0020 Kirigami.Heading { 0021 id: durationHeading 0022 level: 2 0023 text: Formatter.formatDuration(root.journey.duration) 0024 font.strikeout: root.journey.disruptionEffect == KPT.Disruption.NoService 0025 } 0026 0027 Repeater { 0028 model: root.journey.sections 0029 0030 delegate: Loader { 0031 sourceComponent: model.modelData.route.line.hasLogo ? secIcon : secLabel 0032 0033 Component { 0034 id: secIcon 0035 Kirigami.Icon { 0036 width: height 0037 height: durationHeading.height 0038 source: modelData.route.line.logo 0039 } 0040 } 0041 0042 Component { 0043 id: secLabel 0044 Label { 0045 height: durationHeading.height 0046 text: modelData.route.line.name 0047 } 0048 } 0049 } 0050 } 0051 }