summaryrefslogtreecommitdiff
path: root/src/dotcallgraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotcallgraph.cpp')
-rw-r--r--src/dotcallgraph.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dotcallgraph.cpp b/src/dotcallgraph.cpp
index 5611551..9502b43 100644
--- a/src/dotcallgraph.cpp
+++ b/src/dotcallgraph.cpp
@@ -35,14 +35,14 @@ void DotCallGraph::buildGraph(DotNode *n,const MemberDef *md,int distance)
auto refs = m_inverse ? md->getReferencedByMembers() : md->getReferencesMembers();
for (const auto &rmd : refs)
{
- if (rmd->showInCallGraph())
+ if (rmd->isCallable())
{
QCString uniqueId = getUniqueId(rmd);
auto it = m_usedNodes.find(uniqueId.str());
if (it!=m_usedNodes.end()) // file is already a node in the graph
{
DotNode *bn = it->second;
- n->addChild(bn,0,0);
+ n->addChild(bn,EdgeInfo::Blue,EdgeInfo::Solid);
bn->addParent(n);
bn->setDistance(distance);
}
@@ -60,13 +60,13 @@ void DotCallGraph::buildGraph(DotNode *n,const MemberDef *md,int distance)
}
QCString tooltip = rmd->briefDescriptionAsTooltip();
DotNode *bn = new DotNode(
- getNextNodeNumber(),
+ this,
linkToText(rmd->getLanguage(),name,FALSE),
tooltip,
uniqueId,
0 //distance
);
- n->addChild(bn,0,0);
+ n->addChild(bn,EdgeInfo::Blue,EdgeInfo::Solid);
bn->addParent(n);
bn->setDistance(distance);
m_usedNodes.insert(std::make_pair(uniqueId.str(),bn));
@@ -133,7 +133,7 @@ DotCallGraph::DotCallGraph(const MemberDef *md,bool inverse)
name = md->qualifiedName();
}
QCString tooltip = md->briefDescriptionAsTooltip();
- m_startNode = new DotNode(getNextNodeNumber(),
+ m_startNode = new DotNode(this,
linkToText(md->getLanguage(),name,FALSE),
tooltip,
uniqueId,
@@ -214,7 +214,7 @@ bool DotCallGraph::isTrivial(const MemberDef *md,bool inverse)
auto refs = inverse ? md->getReferencedByMembers() : md->getReferencesMembers();
for (const auto &rmd : refs)
{
- if (rmd->showInCallGraph())
+ if (rmd->isCallable())
{
return FALSE;
}