~renatofilho/ubuntu-calendar-app/new-view-canvas

« back to all changes in this revision

Viewing changes to DayView.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-10-11 20:53:36 UTC
  • Revision ID: renato.filho@canonical.com-20161011205336-wlw42djpn2u2acq7
Fixed some warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        createEventAt = eventAt
135
135
    }
136
136
 
 
137
    InvalidFilter {
 
138
        id: invalidFilter
 
139
    }
 
140
 
137
141
    PathViewBase{
138
142
        id: dayViewPath
139
143
        objectName: "dayViewPath"
161
165
                startPeriod: dateIndex.midnight()
162
166
                endPeriod: dateIndex.endOfDay()
163
167
                autoUpdate: true
164
 
                filter: root.model.filter
 
168
                filter: root.model ? root.model.filter : invalidFilter
165
169
            }
166
170
 
167
171
            onEventSelected: root.showEvent(event, calendarDelegate.model)