From ae81e675a117819aa5a2eb7f9be687aff5a6bb9f Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 11:56:10 +0200 Subject: add bool parameter to toString() function in node. --- node/startingnode.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'node/startingnode.cpp') diff --git a/node/startingnode.cpp b/node/startingnode.cpp index 15ea053..b57c630 100644 --- a/node/startingnode.cpp +++ b/node/startingnode.cpp @@ -15,13 +15,17 @@ void StartingNode::run(ExecutionNode*) } QString StartingNode::toString(bool withlabel) const { -if(withlabel) - return "StartingNode [shape=box]"; -else - return "StartingNode"; + if(withlabel) + { + return QString("%1 [label=\"StartingNode %2\"]").arg(m_id); + } + else + { + return m_id; + } } -} + qint64 StartingNode::getPriority() const { qint64 priority=0; -- cgit v1.2.3-70-g09d2