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

« back to all changes in this revision

Viewing changes to TimeLineBaseComponent.qml

  • Committer: Kunal Parmar
  • Date: 2014-10-23 17:34:38 UTC
  • Revision ID: pkunal.parmar@gmail.com-20141023173438-nhkiny32zmbu9p5o
errorĀ resolved

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
                    height: parent.height
146
146
                    delegate: comp
147
147
                    day: startDay.addDays(index)
 
148
                    model: mainModel
148
149
 
149
150
                    Loader{
150
151
                        objectName: "weekdevider"
167
168
                            destroyAllChildren();
168
169
                        }
169
170
                    }
170
 
 
171
 
                    model: mainModel
172
 
                    Component.onCompleted: {
173
 
                        model.addModelChangeListener(destroyAllChildren);
174
 
                        model.addModelChangeListener(createEvents);
175
 
                    }
176
 
                    Component.onDestruction: {
177
 
                        model.removeModelChangeListener(destroyAllChildren);
178
 
                        model.removeModelChangeListener(createEvents);
179
 
                    }
180
171
                }
181
172
            }
182
173
        }