~pkunal-parmar/ubuntu-calendar-app/YearView-Today

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Kunal Parmar
  • Date: 2014-03-14 00:08:03 UTC
  • Revision ID: pkunal.parmar@gmail.com-20140314000803-ema5uvhccbz9rycy
YearView reacts to today

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
            property int endtime: -1;
77
77
 
78
78
            onCurrentDayChanged: {
 
79
                if(yearPage.item
 
80
                        && yearPage.item.currentYear !== undefined
 
81
                        && yearPage.item.currentYear.getFullYear() !== currentDay.getFullYear() ) {
 
82
                    yearPage.item.currentYear = tabPage.currentDay.midnight();
 
83
                }
 
84
 
79
85
                if( monthPage.item
80
86
                        && monthPage.item.currentMonth !== undefined
81
87
                        && !monthPage.item.currentMonth.isSameDay(currentDay))
252
258
                        source: (tabs.selectedTab === yearTab) ? Qt.resolvedUrl("YearView.qml") : ""
253
259
 
254
260
                        onLoaded:{
 
261
                            item.currentYear = tabPage.currentDay.midnight();
255
262
                            item.tools = commonToolBar
256
263
                        }
257
264