462
var now = DateExt.today();
463
if ((date.getMonth() === now.getMonth()) &&
464
(date.getFullYear() === now.getFullYear())) {
465
tabs.currentDay = now;
467
tabs.currentDay = date.midnight();
469
tabs.selectedTabIndex = monthTab.index;
473
refreshCurrentYear(tabs.currentDay.getFullYear())
484
tabs.currentDay = date
485
tabs.selectedTabIndex = dayTab.index
489
anchorDate = tabs.currentDay.midnight()
499
onCurrentDateChanged: {
500
tabs.currentDay = currentDate
503
tabs.currentDay = date;
504
tabs.selectedTabIndex = dayTab.index;
508
anchorDate = tabs.currentDay.midnight()
518
onCurrentDateChanged: {
519
tabs.currentDay = currentDate;
523
tabs.currentDay = date
528
anchorDate = tabs.currentDay
539
tabs.currentDay = date;
540
tabs.selectedTabIndex = dayTab.index;
464
var now = DateExt.today();
465
if ((date.getMonth() === now.getMonth()) &&
466
(date.getFullYear() === now.getFullYear())) {
467
tabs.currentDay = now;
469
tabs.currentDay = date.midnight();
471
tabs.selectedTabIndex = monthTab.index;
475
refreshCurrentYear(tabs.currentDay.getFullYear())
486
tabs.currentDay = date
487
tabs.selectedTabIndex = dayTab.index
491
anchorDate = tabs.currentDay.midnight()
501
onCurrentDateChanged: {
502
tabs.currentDay = currentDate
505
tabs.currentDay = date;
506
tabs.selectedTabIndex = dayTab.index;
510
anchorDate = tabs.currentDay.midnight()
520
onCurrentDateChanged: {
521
tabs.currentDay = currentDate;
525
tabs.currentDay = date
530
anchorDate = tabs.currentDay
541
tabs.currentDay = date;
542
tabs.selectedTabIndex = dayTab.index;