118
118
dayHeader.previousDay();
121
delegate: TimeLineBaseComponent {
123
objectName: "DayComponent-"+index
125
type: ViewType.ViewTypeDay
127
122
width: parent.width
128
123
height: parent.height
130
isActive: timeLineView.PathView.isCurrentItem
131
contentInteractive: timeLineView.PathView.isCurrentItem
132
startDay: dayViewPath.startDay.addDays(dayViewPath.indexType(index))
136
onIsCurrentPageChanged:{
137
if(dayViewPage.isCurrentPage){
138
timeLineView.scrollToCurrentTime();
124
asynchronous: !dayViewPath.isCurrentItem
125
sourceComponent: delegateComponent
128
id: delegateComponent
130
TimeLineBaseComponent {
132
objectName: "DayComponent-"+index
134
type: ViewType.ViewTypeDay
137
isActive: parent.PathView.isCurrentItem
138
contentInteractive: parent.PathView.isCurrentItem
139
startDay: dayViewPath.startDay.addDays(dayViewPath.indexType(index))
140
keyboardEventProvider: dayViewPath
142
Component.onCompleted: {
143
if(dayViewPage.isCurrentPage){
144
timeLineView.scrollToCurrentTime();
150
onIsCurrentPageChanged:{
151
if(dayViewPage.isCurrentPage){
152
timeLineView.scrollToCurrentTime();
157
//get contentY value from PathView, if its not current Item
161
value: dayViewPath.childContentY;
162
when: !parent.PathView.isCurrentItem
165
//set PathView's contentY property, if its current item
168
property: "childContentY"
170
when: parent.PathView.isCurrentItem
143
//get contentY value from PathView, if its not current Item
147
value: dayViewPath.childContentY;
148
when: !timeLineView.PathView.isCurrentItem
151
//set PathView's contentY property, if its current item
154
property: "childContentY"
156
when: timeLineView.PathView.isCurrentItem