Commit 6c1606a3 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

More testcase fixing.

parent fd8581b0
......@@ -49,13 +49,20 @@
// }
// }
static ModelNode addChildNode(const ModelNode &parentNode, const QString &typeName, int major, int minor, const QString &parentProperty)
static ModelNode addNodeListChild(const ModelNode &parentNode, const QString &typeName, int major, int minor, const QString &parentProperty)
{
ModelNode newNode = parentNode.view()->createModelNode(typeName, major, minor);
parentNode.nodeListProperty(parentProperty).reparentHere(newNode);
return newNode;
}
static ModelNode addNodeChild(const ModelNode &parentNode, const QString &typeName, int major, int minor, const QString &parentProperty)
{
ModelNode newNode = parentNode.view()->createModelNode(typeName, major, minor);
parentNode.nodeProperty(parentProperty).reparentHere(newNode);
return newNode;
}
static QString bareTemplate("import Qt 4.6\n"
"Item { id: parentItem;"
" %1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment