@@ -36,47 +36,24 @@ Item {
36 loader.active = true;
36 loader.active = true;
42− id: loader
40+ id: loader
45− width: parent.width - controls.width
46− height: parent.height
48− property bool itemDestroyed: false
49− sourceComponent: Component {
52− height: loader.height
53− background: defaultBackground
54− viewSource: Qt.resolvedUrl("TestView.qml")
56− Component.onDestruction: {
57− loader.itemDestroyed = true;
63− Rectangle {
42+ active: false
64− id: controls
43+ anchors.fill: parent
67− height: parent.height
69− Column {
45+ property bool itemDestroyed: false
70− anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
46+ sourceComponent: Component {
71− spacing: units.gu(1)
47+ Greeter {
49+ height: loader.height
50+ background: defaultBackground
51+ viewSource: Qt.resolvedUrl("TestView.qml")
73− Row {
53+ Component.onDestruction: {
74− Button {
54+ loader.itemDestroyed = true;
76− onClicked: loader.item.show()