+ property var start: new Date()
+ property int duration: 0
+ property int overtook: -1
+ property int overtakenby: -1
+ property int index: -1
+
+ onDurationChanged: {
+ var structured = new Date(0, 0, 0, 0, parseInt(duration / 60))
+ durationTime.value = Qt.formatTime(structured, 'hh:mm')
+ endTime.time = new Date(0, 0, 0, start.getHours() + structured.getHours(), start.getMinutes() + structured.getMinutes())
+ }
+
+ onStartChanged: {
+ startDate.value = Qt.formatDate(start, 'd MMM yyyy')
+ startTime.value = Qt.formatTime(start, 'hh:mm')
+
+ var structured = new Date(0, 0, 0, 0, parseInt(duration / 60))
+ endTime.time = new Date(0, 0, 0, start.getHours() + structured.getHours(), start.getMinutes() + structured.getMinutes())
+ }