Commit c9a9aadd authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Tim Jenssen

QmlDesigner: Remove unused acceptedModelNodeChildren()

Change-Id: I3f584e94135852a1a3619fc2ebb877897a7eef60
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 4e6fd0a2
......@@ -55,23 +55,6 @@
namespace QmlDesigner {
static QList<ModelNode> acceptedModelNodeChildren(const ModelNode &parentNode)
{
QList<ModelNode> children;
PropertyNameList properties;
if (parentNode.metaInfo().hasDefaultProperty())
properties.append(parentNode.metaInfo().defaultPropertyName());
foreach (const PropertyName &propertyName, properties) {
AbstractProperty property(parentNode.property(propertyName));
if (property.isNodeAbstractProperty())
children.append(property.toNodeAbstractProperty().directSubNodes());
}
return children;
}
static QList<ModelNode> modelNodesFromMimeData(const QMimeData *mineData, AbstractView *view)
{
QByteArray encodedModelNodeData = mineData->data(QLatin1String("application/vnd.modelnode.list"));
......
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