From ae81e675a117819aa5a2eb7f9be687aff5a6bb9f Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 11:56:10 +0200 Subject: add bool parameter to toString() function in node. --- node/dicerollernode.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'node/dicerollernode.cpp') diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp index 06148fc..213c8ec 100644 --- a/node/dicerollernode.cpp +++ b/node/dicerollernode.cpp @@ -71,9 +71,16 @@ quint64 DiceRollerNode::getFaces() { return m_faces; } -QString DiceRollerNode::toString() const +QString DiceRollerNode::toString(bool wl) const { - return QString("DiceRollerNode"); + if(wl) + { + return QString("%1 [label=DiceRollerNode]").arg(m_id); + } + else + { + return m_id; + } } qint64 DiceRollerNode::getPriority() const { -- cgit v1.2.3-70-g09d2