From 6a91d28cf161e5a121d7bc09453e23455a109cbb Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Sun, 15 Mar 2026 11:42:31 +0100 Subject: [tree]: improve tree generation --- src/libparser/node/keepdiceexecnode.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/libparser/node/keepdiceexecnode.cpp') diff --git a/src/libparser/node/keepdiceexecnode.cpp b/src/libparser/node/keepdiceexecnode.cpp index b4547c3..15e2fa1 100644 --- a/src/libparser/node/keepdiceexecnode.cpp +++ b/src/libparser/node/keepdiceexecnode.cpp @@ -23,7 +23,7 @@ #include "diceparser/parsingtoolbox.h" #include "keepdiceexecnode.h" -KeepDiceExecNode::KeepDiceExecNode() : m_diceResult(new DiceResult()) +KeepDiceExecNode::KeepDiceExecNode() : ExecutionNode("%1 [label=\"KeepDiceExecNode\"]"), m_diceResult(new DiceResult()) { m_result= m_diceResult; } @@ -89,18 +89,7 @@ void KeepDiceExecNode::setDiceKeepNumber(ExecutionNode* n) { m_numberOfDiceNode= n; } -QString KeepDiceExecNode::toString(bool wl) const -{ - if(wl) - { - // auto param= m_numberOfDiceNode->toString(wl); - return QString("%1 [label=\"KeepDiceExecNode\"]").arg(m_id); - } - else - { - return m_id; - } -} + qint64 KeepDiceExecNode::getPriority() const { qint64 priority= 0; -- cgit v1.2.3-70-g09d2