~pkunal-parmar/ubuntu-calendar-app/SyncSelection

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Kunal Parmar
  • Date: 2015-09-05 05:30:23 UTC
  • Revision ID: pkunal.parmar@gmail.com-20150905053023-rfytprbb6z5ctr11
sync the selection

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
            Keys.forwardTo: [tabs.currentPage.item]
215
215
 
216
216
            property var currentDay: DateExt.today();
 
217
            property var selectedDay;
217
218
 
218
219
            // Arguments on startup
219
220
            property bool newevent: false;
385
386
                    source: tabs.selectedTab == monthTab ? Qt.resolvedUrl("MonthView.qml"):""
386
387
                    onLoaded: {
387
388
                        item.currentMonth = tabs.currentDay.midnight();
 
389
                        item.selectedDay = tabs.selectedDay;
388
390
                    }
389
391
 
390
392
                    anchors{
399
401
                            tabs.currentDay = date;
400
402
                            tabs.selectedTabIndex = dayTab.index;
401
403
                        }
 
404
 
 
405
                        onDateHighlighted:{
 
406
                            tabs.selectedDay = date;
 
407
                        }
402
408
                    }
403
409
                }
404
410
            }
414
420
                    onLoaded: {
415
421
                        item.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == weekTab })
416
422
                        item.dayStart = tabs.currentDay;
 
423
                        item.selectedDay = tabs.selectedDay;
417
424
                    }
418
425
 
419
426
                    anchors{
432
439
                            tabs.currentDay = date;
433
440
                            tabs.selectedTabIndex = dayTab.index;
434
441
                        }
 
442
 
 
443
                        onDateHighlighted:{
 
444
                            tabs.selectedDay = date;
 
445
                        }
435
446
                    }
436
447
                }
437
448
            }