diff options
| author | 2015-08-20 11:56:10 +0200 | |
|---|---|---|
| committer | 2015-08-20 11:56:10 +0200 | |
| commit | ae81e675a117819aa5a2eb7f9be687aff5a6bb9f (patch) | |
| tree | 4284f5e19a479fb666ab6a931ef1e6f991533dfc /node/parenthesesnode.cpp | |
| parent | 8a1c33fb342a3609ec4d22e918c5f847c59c1b91 (diff) | |
| download | OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.tar.gz OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.zip | |
add bool parameter to toString() function in node.
Diffstat (limited to 'node/parenthesesnode.cpp')
| -rw-r--r-- | node/parenthesesnode.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp index 2876147..3398f0a 100644 --- a/node/parenthesesnode.cpp +++ b/node/parenthesesnode.cpp @@ -49,9 +49,16 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/) m_nextNode->run(this); } } -QString ParenthesesNode::toString() const +QString ParenthesesNode::toString(bool b) const { - return "ParenthesesNode"; + if(wl) + { + return QString("%1 [label=\"ParenthesesNode\"]").arg(m_id); + } + else + { + return m_id; + } } qint64 ParenthesesNode::getPriority() const { |