diff options
| author | 2015-08-20 12:52:50 +0200 | |
|---|---|---|
| committer | 2015-08-20 12:52:50 +0200 | |
| commit | 784c00cc2e0d224723b2480b5a7776ccd26c90b3 (patch) | |
| tree | 418d4a986af64722faa75136cd943ae2f540c3b7 /node | |
| parent | 0bbdc72494d7d3c769346a24d0f0aa9b7fe63fb9 (diff) | |
| download | OneRoll-784c00cc2e0d224723b2480b5a7776ccd26c90b3.tar.gz OneRoll-784c00cc2e0d224723b2480b5a7776ccd26c90b3.zip | |
improve the dot generation.
Diffstat (limited to 'node')
| -rw-r--r-- | node/executionnode.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/node/executionnode.cpp b/node/executionnode.cpp index 0d15825..cdda93d 100644 --- a/node/executionnode.cpp +++ b/node/executionnode.cpp @@ -3,7 +3,7 @@ #include <QUuid> ExecutionNode::ExecutionNode() - : m_nextNode(NULL),m_result(NULL),m_previousNode(NULL),m_id(QUuid::createUuid().toString()) + : m_nextNode(NULL),m_result(NULL),m_previousNode(NULL),m_id(QString("\"%1\"").arg(QUuid::createUuid().toString()) { } @@ -62,7 +62,7 @@ void ExecutionNode::generateDotTree(QString& s) s.append(toString(false)); s.append(" -> "); s.append(m_nextNode->toString(false)); - s.append("\n"); + s.append(";\n"); // s.append(" [label=\"nextNode\"];\n"); m_nextNode->generateDotTree(s); } @@ -71,7 +71,12 @@ void ExecutionNode::generateDotTree(QString& s) s.append(toString(false)); s.append(" -> "); s.append("NULL;\n;"); - // s.append(" [label=\"nextNode\"];\n"); + + + s.append(toString(false)); + s.append(" ->"); + s.append(m_result->toString(false)); + s.append(" [label=\"Result\"];\n"); m_result->generateDotTree(s); } |