TimelineDelegate.qml 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
    Copyright (C) 2018 Volker Krause <vkrause@kde.org>

    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published by
    the Free Software Foundation; either version 2 of the License, or (at your
    option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
    License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 2.0
19 20
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.1 as QQC2
21
import org.kde.kirigami 2.4 as Kirigami
22 23
import org.kde.itinerary 1.0
import "." as App
24

25
Kirigami.AbstractCard {
Volker Krause's avatar
Volker Krause committed
26
    id: root
27 28
    property var reservation
    property string passId
29
    property var rangeType
30

Volker Krause's avatar
Volker Krause committed
31 32
    readonly property double headerFontScale: 1.25

33 34
    showClickFeedback: true

35 36 37 38
    function showBoardingPass()
    {
        applicationWindow().pageStack.push(pkpassComponent);
    }
39

40 41
    Component {
        id: pkpassComponent
Volker Krause's avatar
Volker Krause committed
42 43
        App.PkPassPage {
            passId: root.passId
44
            pass: _pkpassManager.passObject(root.passId)
Volker Krause's avatar
Volker Krause committed
45
        }
46
    }
47
}