diff options
| author | 2015-04-25 11:37:46 +0200 | |
|---|---|---|
| committer | 2015-04-25 11:37:46 +0200 | |
| commit | 5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8 (patch) | |
| tree | 16738510451648bc33298f79ca54fd0574ad0602 /result/result.cpp | |
| parent | ea649ea152b7797782ef0345f16de7bcbcc34767 (diff) | |
| download | OneRoll-5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8.tar.gz OneRoll-5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8.zip | |
Dot tree now also displays the result tree. (must be improved).
Diffstat (limited to 'result/result.cpp')
| -rw-r--r-- | result/result.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/result/result.cpp b/result/result.cpp index 3acca93..257045c 100644 --- a/result/result.cpp +++ b/result/result.cpp @@ -48,9 +48,21 @@ bool Result::hasResultOfType(RESULT_TYPE type) const void Result::generateDotTree(QString& s) { s.append(toString()); + if(NULL!=m_previous) + { + s.append(" -> "); + s.append(m_previous->toString()); + s.append(" [label=\"previousResult\"];\n"); + m_previous->generateDotTree(s); + } + { + s.append(" -> "); + s.append("NULL"); + s.append(" [label=\"previousResult\"];\n"); + } } -QString Result::toString() +/*QString Result::toString() { return QString(); -} +}*/ |