~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to TimeLineBaseComponent.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-02-26 03:50:46 UTC
  • Revision ID: renato.filho@canonical.com-20160226035046-d3f7jmazzx97b3au
Use QOrganizerItemModel instead of EventListModel in TimeLine component.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
            restart()
150
150
        }
151
151
 
152
 
        interval: root.isCurrentItem ? 500 : 1000
 
152
        interval: 1 //root.isCurrentItem ? 500 : 1000
153
153
        repeat: false
154
154
        onTriggered: {
155
155
            mainModel.filter = Qt.binding(function() { return root.modelFilter} )
160
160
        id: invalidFilter
161
161
    }
162
162
 
163
 
    EventListModel {
 
163
    OrganizerModel {
164
164
        id: mainModel
165
165
 
 
166
        manager:"eds"
166
167
        startPeriod: startDay.midnight();
167
168
        endPeriod: type == ViewType.ViewTypeWeek ? startPeriod.addDays(7).endOfDay(): startPeriod.endOfDay()
168
169
        filter: invalidFilter
 
170
        autoUpdate: true
169
171
 
170
172
        onStartPeriodChanged: idleRefresh.reset()
171
173
        onEndPeriodChanged: idleRefresh.reset()
177
179
 
178
180
        visible: running
179
181
        anchors.centerIn: parent
180
 
        running: mainModel.isLoading
 
182
        //running: mainModel.isLoading
181
183
        z:2
182
184
    }
183
185