~renatofilho/ubuntu-calendar-app/fix-1311111

« back to all changes in this revision

Viewing changes to DayView.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-04-29 13:00:54 UTC
  • mfrom: (253.2.3 trunk)
  • Revision ID: renato.filho@canonical.com-20140429130054-dhzr4e3b5n7wmhqw
MergedĀ mainline.

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
    }