diff --git a/src/app/EventDelegate.qml b/src/app/EventDelegate.qml index 962607b..325d86c 100644 --- a/src/app/EventDelegate.qml +++ b/src/app/EventDelegate.qml @@ -1,78 +1,79 @@ /* Copyright (C) 2018 Volker Krause 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 . */ import QtQuick 2.5 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.1 as QQC2 import org.kde.kirigami 2.4 as Kirigami import org.kde.itinerary 1.0 import "." as App App.TimelineDelegate { id: root header: Rectangle { id: headerBackground Kirigami.Theme.colorSet: Kirigami.Theme.Complementary Kirigami.Theme.inherit: false color: Kirigami.Theme.backgroundColor implicitHeight: headerLayout.implicitHeight + Kirigami.Units.largeSpacing * 2 anchors.leftMargin: -root.leftPadding anchors.topMargin: -root.topPadding anchors.rightMargin: -root.rightPadding RowLayout { id: headerLayout anchors.fill: parent anchors.margins: Kirigami.Units.largeSpacing QQC2.Label { text: i18n("📅 %1", reservationFor.name) font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale + color: Kirigami.Theme.textColor Layout.fillWidth: true } QQC2.Label { text: Localizer.formatTime(reservationFor, "startDate") font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale } } } contentItem: ColumnLayout { id: topLayout QQC2.Label { text: reservationFor.location.name } App.PlaceDelegate { place: reservationFor.location Layout.fillWidth: true } QQC2.Label { text: i18n("End time: %1", Localizer.formatDateTime(reservationFor, "endDate")); } } Component { id: detailsComponent App.EventPage { resIds: root.resIds } } onClicked: applicationWindow().pageStack.push(detailsComponent); }