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

« back to all changes in this revision

Viewing changes to TimeLineBase.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:
27
27
    property int hourHeight: units.gu(10)
28
28
    property var model;
29
29
 
 
30
    Component.onCompleted: {
 
31
        bubbleOverLay.createEvents();
 
32
        model.addModelChangeListener(destroyAllChildren);
 
33
        model.addModelChangeListener(createEvents);
 
34
    }
 
35
 
 
36
    Component.onDestruction: {
 
37
        model.removeModelChangeListener(destroyAllChildren);
 
38
        model.removeModelChangeListener(createEvents);
 
39
    }
 
40
 
30
41
    MouseArea {
31
42
        anchors.fill: parent
32
43
        objectName: "mouseArea"
73
84
        }
74
85
    }
75
86
 
76
 
    function layoutEvents(array, depth) {              
 
87
    function layoutEvents(array, depth) {
77
88
        for(var i=0; i < array.length ; ++i) {
78
89
            var schedule = array[i];
79
90
            var event = intern.eventMap[schedule.id];