X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fpages%2FJourneyList.qml;h=0468df0d152fb60247f760a836f1b3bd077f44e7;hp=8c6998f0422e454b3aba131e1be6d784fce5559d;hb=371dcf3335b355f8d421352a394161dc6d9b9f24;hpb=e917baa52e7157c7c41424527c3881c22ff65588 diff --git a/qml/pages/JourneyList.qml b/qml/pages/JourneyList.qml index 8c6998f..0468df0 100644 --- a/qml/pages/JourneyList.qml +++ b/qml/pages/JourneyList.qml @@ -34,11 +34,11 @@ Page { } Label { width: columnwidth / 3.0 - text: parseInt(duration / (60 * 60)) + ":" + (parseInt(duration / 60) % 60) + text: Qt.formatTime(new Date(0, 0, 0, 0, 0, duration), 'hh:mm') color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor } } - onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"), {title: "Edit journey"}) + onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"), {title: "Edit journey", index: index, start: journeymodel.epochToDateTime(start), duration: duration, overtook: overtook, overtakenby: overtakenby}) } VerticalScrollDecorator {} }