summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-10-12 12:08:26 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2016-10-14 10:01:26 +0000
commit0eac16fbda846c951f9b3887199e72b66f5aacd7 (patch)
tree31e5e7133326ed358a5d132fc1587dfc7b7ca4f8 /tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
parent2c147f2be69ada6aa896e7fb753c3c05fbf46730 (diff)
NodeInstantiator created nodes go to its parentv5.7.1
Currently, elements created by the NodeInstantiator are children of the instantiator itself. Change that to parent them in the instantiator parent instead. Rationale for that is that it will behave similarly to Repeater this way, and gives a chance of using NodeInstantiator in frame graphs. Indeed, anything which is not a FrameGraphNode gets pruned in that context that would include branches starting from NodeInstantiator. Change-Id: I651a51471d92fcf466c9abd5dbbbfa2960ef1247 Task-Id: QTBUG-55908 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml')
-rw-r--r--tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml b/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
index 431c1ebd8..5aa4d399a 100644
--- a/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
+++ b/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
@@ -1,10 +1,12 @@
import QtQml 2.1
import Qt3D.Core 2.0
-NodeInstantiator {
- model: ["alpha", "beta", "gamma", "delta"]
- delegate: Entity {
- property bool success: index == 1 ? datum.length == 4 : datum.length == 5
- property string datum: modelData
+Entity {
+ NodeInstantiator {
+ model: ["alpha", "beta", "gamma", "delta"]
+ delegate: Entity {
+ property bool success: index == 1 ? datum.length == 4 : datum.length == 5
+ property string datum: modelData
+ }
}
}