Warning, /pim/itinerary/src/app/DetailsPage.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 internal.org.kde.kcalendarcore as KCalendarCore
0012 import org.kde.kitinerary
0013 import org.kde.itinerary
0014 
0015 Kirigami.ScrollablePage {
0016     id: root
0017     /** The reservation batch identifier (@see ReservationManager). */
0018     property alias batchId: _controller.batchId
0019     /** Currently selected reservation id of the batch. */
0020     property var currentReservationId: batchId
0021     /** Currently selected reservation of the batch. */
0022     property var reservation: ReservationManager.reservation(currentReservationId);
0023     /** Reservation::reservationFor, unique for all travelers on a multi-traveler reservation set */
0024     readonly property var reservationFor: reservation.reservationFor
0025     property Component editor
0026 
0027     property QtObject controller: TimelineDelegateController {
0028         id: _controller
0029         reservationManager: ReservationManager
0030         liveDataManager: LiveDataManager
0031         transferManager: TransferManager
0032         documentManager: DocumentManager
0033     }
0034     property alias arrival: _controller.arrival
0035     property alias departure: _controller.departure
0036 
0037     leftPadding: 0
0038     rightPadding: 0
0039 
0040     Connections {
0041         target: ReservationManager
0042         function onBatchContentChanged(batchId) {
0043             if (batchId == root.batchId) {
0044                 root.reservation = Qt.binding(function() { return ReservationManager.reservation(root.currentReservationId); })
0045             }
0046         }
0047     }
0048 }