diff options
| author | 2015-08-20 11:56:10 +0200 | |
|---|---|---|
| committer | 2015-08-20 11:56:10 +0200 | |
| commit | ae81e675a117819aa5a2eb7f9be687aff5a6bb9f (patch) | |
| tree | 4284f5e19a479fb666ab6a931ef1e6f991533dfc /node/sortresult.cpp | |
| parent | 8a1c33fb342a3609ec4d22e918c5f847c59c1b91 (diff) | |
| download | OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.tar.gz OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.zip | |
add bool parameter to toString() function in node.
Diffstat (limited to 'node/sortresult.cpp')
| -rw-r--r-- | node/sortresult.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/node/sortresult.cpp b/node/sortresult.cpp index 727810e..ffece63 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -112,10 +112,14 @@ void SortResultNode::setSortAscending(bool asc) } QString SortResultNode::toString(bool wl) const { -if(wl) - return QString("SortResultNode [label=\"SortResultNode %1\"").arg(m_ascending ? "Ascending":"Descending"); -else - return QString("SortResultNode"); + if(wl) + { + return QString("%1 [label=\"SortResultNode %2\"]").arg(m_id).arg(m_ascending ? "Ascending":"Descending"); + } + else + { + return m_id; + } } qint64 SortResultNode::getPriority() const |