67
objectName: "weekViewPath"
66
69
anchors.fill: parent
67
anchors.topMargin: units.gu(1)
72
objectName: "weekHeader"
73
type: ViewType.ViewTypeWeek
77
weekViewPage.dateSelected(date);
83
objectName: "weekViewPath"
71
//This is used to scroll all view together when currentItem scrolls
72
property var childContentY;
74
onNextItemHighlighted: {
78
onPreviousItemHighlighted: {
83
dayStart = firstDay.addDays(7);
86
function previousWeek(){
87
dayStart = firstDay.addDays(-7);
85
91
width: parent.width
86
height: weekViewPage.height - weekViewPath.y
88
//This is used to scroll all view together when currentItem scrolls
89
property var childContentY;
91
onNextItemHighlighted: {
93
weekHeader.incrementCurrentIndex()
96
onPreviousItemHighlighted: {
98
weekHeader.decrementCurrentIndex()
101
function nextWeek() {
102
dayStart = firstDay.addDays(7);
105
function previousWeek(){
106
dayStart = firstDay.addDays(-7);
111
height: parent.height
112
asynchronous: index !== weekViewPath.currentIndex
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: {
93
asynchronous: !weekViewPath.isCurrentItem
94
sourceComponent: delegateComponent
99
TimeLineBaseComponent {
102
type: ViewType.ViewTypeWeek
104
isActive: parent.PathView.isCurrentItem
105
startDay: firstDay.addDays( weekViewPath.indexType(index) * 7)
106
keyboardEventProvider: weekViewPath
108
Component.onCompleted: {
109
if(weekViewPage.isCurrentPage){
110
timeLineView.scrollToCurrentTime();
115
weekViewPage.dateSelected(date);
120
onIsCurrentPageChanged:{
128
121
if(weekViewPage.isCurrentPage){
129
122
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
127
//get contentY value from PathView, if its not current Item
131
value: weekViewPath.childContentY;
132
when: !parent.PathView.isCurrentItem
135
//set PathView's contentY property, if its current item
138
property: "childContentY"
140
when: parent.PathView.isCurrentItem