2 import Sailfish.Silica 1.0
7 // The effective value will be restricted by ApplicationWindow.allowedOrientations
8 allowedOrientations: Orientation.All
9 property int columnwidth: page.width - 2 * Theme.horizontalPageMargin
16 title: qsTr("Journey list")
18 delegate: BackgroundItem {
22 spacing: Theme.paddingLarge
23 x: Theme.horizontalPageMargin
26 width: columnwidth / 3.0
27 text: Qt.formatDate(journeymodel.epochToDate(start), "d MMM yyyy")
28 color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
31 width: columnwidth / 3.0
32 text: Qt.formatTime(journeymodel.epochToTime(start), "hh:mm")
33 color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
36 width: columnwidth / 3.0
37 text: parseInt(duration / (60 * 60)) + ":" + (parseInt(duration / 60) % 60)
38 color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
41 onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"), {title: "Edit journey"})
43 VerticalScrollDecorator {}