Change-Id: I00c58120080f84a30431c34c5c71866f63aca0e4
Reviewed-on: http://codereview.qt.nokia.com/4212
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
modelNode.removeProperty(gradientName());
}
- ModelNode gradientNode = modelNode.view()->createModelNode("QtQuick.Gradient", 1, 0);
+ ModelNode gradientNode = gradientNode= modelNode.view()->createModelNode("QtQuick.Gradient", modelNode.majorVersion(), 0);
modelNode.nodeProperty(gradientName()).reparentHere(gradientNode);
RewriterTransaction transaction = m_itemNode.modelNode().view()->beginRewriterTransaction();