@@ -36,47 +36,24 @@ Item {
3636 loader.active = true;
3737 }
3838
39− Row {
40− anchors.fill: parent
41− Loader {
42− id: loader
43−
44− active: false
45− width: parent.width - controls.width
46− height: parent.height
47−
48− property bool itemDestroyed: false
49− sourceComponent: Component {
50− Greeter {
51− width: loader.width
52− height: loader.height
53− background: defaultBackground
54− viewSource: Qt.resolvedUrl("TestView.qml")
55−
56− Component.onDestruction: {
57− loader.itemDestroyed = true;
58− }
59− }
60− }
61− }
39+ Loader {
40+ id: loader
6241
63− Rectangle {
64− id: controls
65− color: "white"
66− width: units.gu(40)
67− height: parent.height
42+ active: false
43+ anchors.fill: parent
6844
69− Column {
70− anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
71− spacing: units.gu(1)
45+ property bool itemDestroyed: false
46+ sourceComponent: Component {
47+ Greeter {
48+ width: loader.width
49+ height: loader.height
50+ background: defaultBackground
51+ viewSource: Qt.resolvedUrl("TestView.qml")
7252
73− Row {
74− Button {
75− text: "Show Greeter"
76− onClicked: loader.item.show()
77− }
53+ Component.onDestruction: {
54+ loader.itemDestroyed = true;
7855 }
79− }
56+ }
8057 }
8158 }
8259