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

« back to all changes in this revision

Viewing changes to EventDetails.qml

  • Committer: Kunal Parmar
  • Date: 2014-01-18 03:06:49 UTC
  • mfrom: (182 ubuntu-calendar-app)
  • mto: This revision was merged to the branch mainline in revision 186.
  • Revision ID: pkunal.parmar@gmail.com-20140118030649-ziqq655e89lqc3id
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        if( pageStack.header )
24
24
            pageStack.header.visible = true;
25
25
    }
26
 
 
 
26
    Connections{
 
27
        target: pageStack
 
28
        onCurrentPageChanged:{
 
29
            if( pageStack.currentPage === root) {
 
30
                pageStack.header.visible = false;
 
31
                showEvent(event);
 
32
            }
 
33
        }
 
34
    }
27
35
    function showEvent(e) {
28
36
        var location = "";
29
37
 
76
84
            }
77
85
        }
78
86
 
79
 
        /*
80
 
        ToolbarButton {
81
 
            action: Action {
82
 
                text: i18n.tr("Add invite");
83
 
                onTriggered: {
84
 
                    print(text + " not implemented");
85
 
                }
86
 
            }
87
 
        }
88
 
    */
89
 
        /*
90
87
        ToolbarButton {
91
88
            action:Action {
92
89
                text: i18n.tr("Edit");
93
90
                iconSource: Qt.resolvedUrl("edit.svg");
94
91
                onTriggered: {
95
 
                    print(text + " not implemented");
 
92
                   pageStack.push(Qt.resolvedUrl("NewEvent.qml"),{"event":event});
96
93
                }
97
94
            }
98
95
        }
99
 
    */
100
96
    }
 
97
 
101
98
    Rectangle {
102
99
        id:eventDetilsView
103
100
        anchors.fill: parent