~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to DayView.qml

  • Committer: Kunal Parmar
  • Date: 2014-10-20 14:18:13 UTC
  • mto: This revision was merged to the branch mainline in revision 512.
  • Revision ID: pkunal.parmar@gmail.com-20141020141813-s5l5dgavse2n23vy
bug fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    property var currentDay: new Date()
29
29
    property bool isCurrentPage: false
30
30
 
 
31
    signal dateSelected(var date);
 
32
 
31
33
    Keys.forwardTo: [dayViewPath]
32
34
    flickable: null
33
35
 
69
71
            type: ViewType.ViewTypeDay
70
72
            currentDay: dayViewPage.currentDay
71
73
 
 
74
            onDateSelected: {
 
75
                dayViewPage.currentDay = date;
 
76
                dayViewPage.dateSelected(date);
 
77
            }
 
78
 
72
79
            onCurrentDayChanged: {
73
80
                date = dayViewPage.currentDay.weekStart(Qt.locale().firstDayOfWeek);
74
81
            }