diff options
| author | 2015-08-20 11:56:10 +0200 | |
|---|---|---|
| committer | 2015-08-20 11:56:10 +0200 | |
| commit | ae81e675a117819aa5a2eb7f9be687aff5a6bb9f (patch) | |
| tree | 4284f5e19a479fb666ab6a931ef1e6f991533dfc /node/startingnode.cpp | |
| parent | 8a1c33fb342a3609ec4d22e918c5f847c59c1b91 (diff) | |
| download | OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.tar.gz OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.zip | |
add bool parameter to toString() function in node.
Diffstat (limited to 'node/startingnode.cpp')
| -rw-r--r-- | node/startingnode.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
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; |