aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/keepdiceexecnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-08-20 11:56:10 +0200
committerRenaud G <renaud@rolisteam.org>2015-08-20 11:56:10 +0200
commitae81e675a117819aa5a2eb7f9be687aff5a6bb9f (patch)
tree4284f5e19a479fb666ab6a931ef1e6f991533dfc /node/keepdiceexecnode.cpp
parent8a1c33fb342a3609ec4d22e918c5f847c59c1b91 (diff)
downloadOneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.tar.gz
OneRoll-ae81e675a117819aa5a2eb7f9be687aff5a6bb9f.zip
add bool parameter to toString() function in node.
Diffstat (limited to 'node/keepdiceexecnode.cpp')
-rw-r--r--node/keepdiceexecnode.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp
index a225ac4..492e69c 100644
--- a/node/keepdiceexecnode.cpp
+++ b/node/keepdiceexecnode.cpp
@@ -62,9 +62,16 @@ void KeepDiceExecNode::setDiceKeepNumber(quint64 n)
{
m_numberOfDice = n;
}
-QString KeepDiceExecNode::toString() const
+QString KeepDiceExecNode::toString(bool wl) const
{
- return QString("KeepDiceExecNode [label=\"KeepDiceExecNode %1\"]").arg(m_numberOfDice);
+ if(wl)
+ {
+ return QString("%1 [label=\"KeepDiceExecNode %1\"]").arg(m_id).arg(m_numberOfDice);
+ }
+ else
+ {
+ return m_id;
+ }
}
qint64 KeepDiceExecNode::getPriority() const
{