summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/dynamic.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic/dynamic.qml')
-rw-r--r--examples/declarative/dynamic/dynamic.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/dynamic/dynamic.qml b/examples/declarative/dynamic/dynamic.qml
index 3e0c12e..b9f3b35 100644
--- a/examples/declarative/dynamic/dynamic.qml
+++ b/examples/declarative/dynamic/dynamic.qml
@@ -13,9 +13,9 @@ Rect { id: page; width: 800; height: 800; color:"black"
MouseRegion { anchors.fill:parent; onClicked:
{
if(fourthBox == null) {
- a = createWithEvalQml();
+ a = createQml(targetItem2);
if(a!=null) {
- a.parent = targetItem2;
+ a.parent = targetItem2;//BUG: this should happen automatically
fourthBox = a;
extendStars = true;
}