Commit 0c7852d5 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Marco Bubke

QmlDesigner.formEditor: do not show items from a delegate

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/830Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent acd500ae
......@@ -125,7 +125,8 @@ void FormEditorView::setupFormEditorItemTree(const QmlItemNode &qmlItemNode)
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());
}
......
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