@@ -26,10 +26,8 @@ Rectangle {
26 id: content
26 id: content
28 property QtObject indicatorsModel: null
28 property QtObject indicatorsModel: null
29− property bool __contentActive: false
30 readonly property alias currentMenuIndex: listViewHeader.currentIndex
29 readonly property alias currentMenuIndex: listViewHeader.currentIndex
31 color: "#221e1c" // FIXME not in palette yet
30 color: "#221e1c" // FIXME not in palette yet
32− property int contentReleaseInterval: 20000
33 property real headerHeight: listViewHeader.height
31 property real headerHeight: listViewHeader.height
35 width: units.gu(40)
33 width: units.gu(40)
@@ -39,17 +37,6 @@ Rectangle {
39 listViewHeader.currentIndex = index;
37 listViewHeader.currentIndex = index;
42− function activateContent() {
43− contentReleaseTimer.stop();
44− __contentActive = true;
47− function releaseContent() {
48− if (__contentActive) {
49− contentReleaseTimer.restart();
53 ListView {
40 ListView {
54 id: listViewHeader
41 id: listViewHeader
55 objectName: "indicatorsHeaderListView"
42 objectName: "indicatorsHeaderListView"
@@ -117,17 +104,6 @@ Rectangle {
117 source: pageSource
104 source: pageSource
118 asynchronous: true
105 asynchronous: true
120− readonly property bool indexActive: index >= 0 && index < menuActivator.count && menuActivator.content[index].active
121− readonly property bool contentActive: content.__contentActive && indexActive
123− onContentActiveChanged: {
124− if (contentActive && item) {
126− } else if (!contentActive && item) {
131 onVisibleChanged: {
107 onVisibleChanged: {
132 // Reset the indicator states
108 // Reset the indicator states
133 if (!visible && item && item["reset"]) {
109 if (!visible && item && item["reset"]) {
@@ -141,9 +117,6 @@ Rectangle {
141 item[pName] = indicatorProperties[pName]
117 item[pName] = indicatorProperties[pName]
144− if (contentActive && listViewContent.visible) {
149 Binding {
122 Binding {
@@ -153,21 +126,4 @@ Rectangle {
158− id: contentReleaseTimer
160− interval: contentReleaseInterval
162− content.__contentActive = false;
163− menuActivator.clear();
167− Indicators.MenuContentActivator {
169− running: content.__contentActive
170− baseIndex: content.currentMenuIndex
171− count: indicatorsModel.count