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

« back to all changes in this revision

Viewing changes to MonthComponent.qml

  • Committer: Kunal Parmar
  • Date: 2014-10-23 14:14:10 UTC
  • mfrom: (524.1.2 trunk)
  • Revision ID: pkunal.parmar@gmail.com-20141023141410-dxelmd8zlt9ned70
removed unnecessary files

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    id: root
25
25
    objectName: "MonthComponent"
26
26
 
 
27
    property bool isCurrentItem;
 
28
 
27
29
    property bool showEvents: false
28
30
 
29
31
    property var currentMonth;
66
68
        EventListModel {
67
69
            id: mainModel
68
70
            startPeriod: intern.monthStart.midnight();
69
 
            endPeriod: intern.monthStart.addDays((monthGrid.weekCount*7)-1).endOfDay()
 
71
            endPeriod: intern.monthStart.addDays((/*monthGrid.weekCount*/ 6 * 7)-1).endOfDay()
70
72
            filter: eventModel.filter
71
73
            onModelChanged: {
72
74
                intern.eventStatus = Qt.binding(function() { return mainModel.containsItems(startPeriod,endPeriod,24*60*60)});