@@ -22,7 +22,7 @@ import Ubuntu.Components 0.1
22import Ubuntu.Components.ListItems 0.1 as ListItem
22import Ubuntu.Components.ListItems 0.1 as ListItem
25− id: _page
25+ id: page
27 title: indicatorProperties && indicatorProperties.title ? indicatorProperties.title : ""
27 title: indicatorProperties && indicatorProperties.title ? indicatorProperties.title : ""
28 property variant indicatorProperties
28 property variant indicatorProperties
@@ -31,11 +31,10 @@ Page {
31 anchors.fill: parent
31 anchors.fill: parent
33 ListItem.Standard {
33 ListItem.Standard {
34− id: button
34+ id: visualCheckItem
36 text: "Enable Visual Representation"
35 text: "Enable Visual Representation"
37 control: Switch {
36 control: Switch {
38− id: checked
37+ id: visualCheck
39 checked: true
38 checked: true
@@ -45,13 +44,14 @@ Page {
45 objectName: "page_loader"
44 objectName: "page_loader"
48− top: button.bottom
47+ top: visualCheckItem.bottom
49 left: parent.left
48 left: parent.left
50 right: parent.right
49 right: parent.right
51− bottom: parent.bottom
50+ bottom: buttons.top
52 topMargin: units.gu(2)
51 topMargin: units.gu(2)
52+ bottomMargin: units.gu(2)
54− source : checked.checked ? _page.pageSource : "IndicatorsTree.qml"
54+ source : visualCheck.checked ? page.pageSource : "IndicatorsTree.qml"
56 onLoaded: {
56 onLoaded: {
57 for(var pName in indicatorProperties) {
57 for(var pName in indicatorProperties) {
@@ -62,4 +62,32 @@ Page {
62 item.start();
62 item.start();
71+ bottom: parent.bottom
74+ height: childrenRect.height
81+ onClicked: page.pageStack.reset()
85+ visible: !visualCheck.checked
90+ onClicked: page_loader.item.refresh()