106
106
dayStart = firstDay.addDays(-7);
109
delegate: TimeLineBaseComponent {
112
type: ViewType.ViewTypeWeek
114
110
width: parent.width
115
111
height: parent.height
117
isActive: timeLineView.PathView.isCurrentItem
119
startDay: firstDay.addDays( weekViewPath.indexType(index) * 7)
123
onIsCurrentPageChanged:{
124
if(weekViewPage.isCurrentPage){
125
timeLineView.scrollToCurrentTime();
112
asynchronous: !weekViewPath.isCurrentItem
113
sourceComponent: delegateComponent
116
id: delegateComponent
118
TimeLineBaseComponent {
121
type: ViewType.ViewTypeWeek
123
isActive: parent.PathView.isCurrentItem
124
startDay: firstDay.addDays( weekViewPath.indexType(index) * 7)
125
keyboardEventProvider: weekViewPath
127
Component.onCompleted: {
128
if(weekViewPage.isCurrentPage){
129
timeLineView.scrollToCurrentTime();
135
onIsCurrentPageChanged:{
136
if(weekViewPage.isCurrentPage){
137
timeLineView.scrollToCurrentTime();
142
//get contentY value from PathView, if its not current Item
146
value: weekViewPath.childContentY;
147
when: !parent.PathView.isCurrentItem
150
//set PathView's contentY property, if its current item
153
property: "childContentY"
155
when: parent.PathView.isCurrentItem
130
//get contentY value from PathView, if its not current Item
134
value: weekViewPath.childContentY;
135
when: !timeLineView.PathView.isCurrentItem
138
//set PathView's contentY property, if its current item
141
property: "childContentY"
143
when: timeLineView.PathView.isCurrentItem