~ubuntu-branches/ubuntu/saucy/unity8/saucy-proposed

« back to all changes in this revision

Viewing changes to Panel/MenuContent.qml

  • Committer: Package Import Robot
  • Author(s): Loïc Minier
  • Date: 2013-10-04 21:22:29 UTC
  • Revision ID: package-import@ubuntu.com-20131004212229-a2j9c8et8gfd7xue
Tags: 7.82+13.10.20131004.2-0ubuntu1
Revert 7.82+13.10.20131004.1-0ubuntu1 back to
7.81.3+13.10.20130927.3-0ubuntu1 due to CPU hogging issue with
7.82+13.10.20131004.1-0ubuntu1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
            Tab {
101
101
                id: tab
102
102
                objectName: model.identifier
 
103
                title: model.title
103
104
 
104
105
                page: Page {
105
106
                    Loader {
106
 
                        id: loader
107
107
                        clip: true
108
108
                        anchors.fill: parent
109
109
                        source: pageSource
110
110
                        asynchronous: true
111
111
 
112
 
                        readonly property bool indexActive: index >= 0 && index < menuActivator.count && menuActivator.content[index].active
113
 
                        readonly property bool contentActive: content.__contentActive && indexActive
 
112
                        property bool contentActive: content.__contentActive && menuActivator.content[index].active
114
113
 
115
114
                        onContentActiveChanged: {
116
115
                            if (contentActive && item) {
137
136
                                item.start()
138
137
                            }
139
138
                        }
140
 
 
141
 
                        Binding {
142
 
                            target: tab
143
 
                            property: "title"
144
 
                            value: loader.item && loader.item.hasOwnProperty("title") && loader.item.title !== "" ? loader.item.title : model.identifier
145
 
                        }
146
139
                    }
147
140
                }
148
141
            }