Items that have a custom parser or are components are not shown
in the formeditor.
Task-number: QTCREATORBUG-5228
Change-Id: I633fe35d40edd1a5b14275d67a48265313b08657
Reviewed-on: http://codereview.qt.nokia.com/830
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
m_scene->addFormEditorItem(qmlItemNode);
foreach (const QmlObjectNode &nextNode, qmlItemNode.allDirectSubNodes()) //TODO instance children
- if (QmlItemNode(nextNode).isValid())
+ //If the node has source for components/custom parsers we ignore it.
+ if (QmlItemNode(nextNode).isValid() && nextNode.modelNode().nodeSourceType() == ModelNode::NodeWithoutSource)
setupFormEditorItemTree(nextNode.toQmlItemNode());
}