~chris.gagnon/ubuntu-calendar-app/fix_1293489

« back to all changes in this revision

Viewing changes to MonthView.qml

  • Committer: Kunal Parmar
  • Date: 2013-12-14 02:44:09 UTC
  • mto: This revision was merged to the branch mainline in revision 195.
  • Revision ID: pkunal.parmar@gmail.com-20131214024409-oa7r1rtx9nbah4wm
PathView changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    PathViewBase{
14
14
        id: monthViewPath
15
15
 
16
 
        property var startMonth: addMonth(currentMonth,-1);
 
16
        property var startMonth: currentMonth;
17
17
 
18
18
        anchors.top:parent.top
19
19
 
53
53
                case 0:
54
54
                    return monthViewPath.startMonth;
55
55
                case -1:
56
 
                    return monthViewPath.addMonth(monthViewPath.startMonth,2);
 
56
                    return monthViewPath.addMonth(monthViewPath.startMonth,-1);
57
57
                case 1:
58
58
                    return monthViewPath.addMonth(monthViewPath.startMonth,1);
59
59
                }