~timo-jyrinki/ubuntu-calendar-app/use_pickerpanelworkaround_lp1351024

« back to all changes in this revision

Viewing changes to DayView.qml

  • Committer: Kunal Parmar
  • Date: 2014-05-19 08:54:41 UTC
  • mfrom: (274 ubuntu-calendar-app)
  • mto: This revision was merged to the branch mainline in revision 354.
  • Revision ID: pkunal.parmar@gmail.com-20140519085441-rw80fn7schao4tqi
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
 
109
109
                contentInteractive: timeLineView.PathView.isCurrentItem
110
110
 
111
 
                startDay: getStartDay()
112
 
 
113
 
                function getStartDay() {
114
 
                    switch( dayViewPath.indexType(index)) {
115
 
                    case 0:
116
 
                        return dayViewPath.startDay;
117
 
                    case -1:
118
 
                        return dayViewPath.startDay.addDays(-1);
119
 
                    case 1:
120
 
                        return dayViewPath.startDay.addDays(1);
121
 
                    }
122
 
                }
 
111
                startDay: dayViewPath.startDay.addDays(dayViewPath.indexType(index))
123
112
            }
124
113
        }
125
114
    }