~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-03-01 18:47:39 UTC
  • Revision ID: renato.filho@canonical.com-20160301184739-go6fy3oodrik4pb3
Switching from week to day view will show the first day of the week or the last event start date clicked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
                if (highlightedDay)
603
603
                    tabs.currentDay = highlightedDay
604
604
                else
605
 
                    tabs.currentDay = currentDate
 
605
                    tabs.currentDay = currentFirstDayOfWeek
606
606
            }
607
607
 
608
 
            onCurrentDateChanged: {
609
 
                tabs.currentDay = currentDate.weekStart(Qt.locale().firstDayOfWeek)
 
608
            onCurrentFirstDayOfWeekChanged: {
 
609
                tabs.currentDay = currentFirstDayOfWeek
610
610
            }
611
611
 
612
612
            onDateSelected: {