ui: bundle built-in types in graph view

This commit is contained in:
Eberhard Graether
2017-01-27 14:21:28 +01:00
parent b659b2ac34
commit f88fd92962
@@ -748,6 +748,15 @@ void GraphController::bundleNodes()
"Undefined Symbols"
);
bundleNodesAndEdgesMatching(
[](const DummyNode::BundleInfo& info, const Node* data)
{
return info.isDefined && info.isReferenced && data->isType(Node::NODE_BUILTIN_TYPE);
},
3,
"Built-in Types"
);
if (!fileOrMacroActive)
{
bundleNodesAndEdgesMatching(
@@ -952,7 +961,7 @@ void GraphController::bundleNodesByType()
bundleByType(nodes, Node::NODE_NAMESPACE, "Namespaces");
bundleByType(nodes, Node::NODE_PACKAGE, "Packages");
bundleByType(nodes, Node::NODE_BUILTIN_TYPE, "Builtin Types");
bundleByType(nodes, Node::NODE_BUILTIN_TYPE, "Built-in Types");
bundleByType(nodes, Node::NODE_CLASS, "Classes");
bundleByType(nodes, Node::NODE_INTERFACE, "Interfaces");
bundleByType(nodes, Node::NODE_STRUCT, "Structs");