Warning, /pim/itinerary/src/app/FormPlatformDelegate.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2018,2023 Volker Krause <vkrause@kde.org> 0002 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0003 // SPDX-License-Identifier: LGPL-2.0-or-later 0004 0005 import QtQuick 0006 import QtQuick.Layouts 0007 import QtQuick.Controls as QQC2 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.kirigamiaddons.formcard as FormCard 0010 import org.kde.itinerary 0011 0012 FormCard.AbstractFormDelegate { 0013 id: root 0014 0015 property var stopover 0016 property string sections 0017 property string scheduledPlatform 0018 0019 text: i18n("Platform") 0020 0021 visible: platformLabel.text != "" 0022 0023 contentItem: ColumnLayout { 0024 spacing: Kirigami.Units.smallSpacing 0025 0026 QQC2.Label { 0027 text: root.text 0028 elide: Text.ElideRight 0029 Layout.fillWidth: true 0030 Accessible.ignored: true 0031 } 0032 0033 RowLayout { 0034 QQC2.Label { 0035 Layout.fillWidth: true 0036 id: platformLabel 0037 text: (root.stopover.hasExpectedPlatform ? root.stopover.expectedPlatform : root.scheduledPlatform) + (root.sections ? " " + root.sections: "") 0038 color: root.platformChanged ? Kirigami.Theme.negativeTextColor : 0039 root.stopover.hasExpectedPlatform ? Kirigami.Theme.positiveTextColor : 0040 Kirigami.Theme.disabledTextColor 0041 } 0042 0043 QQC2.Label { 0044 text: i18nc("previous platform", "(was: %1)", root.scheduledPlatform) 0045 visible: root.stopover.platformChanged && root.scheduledPlatform !== "" 0046 color: Kirigami.Theme.disabledTextColor 0047 Accessible.ignored: !visible 0048 } 0049 } 0050 } 0051 }