aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/keepdiceexecnode.cpp
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud.guezennec@qt.io>2026-03-15 11:42:31 +0100
committerRenaud Guezennec <renaud@rolisteam.org>2026-03-15 10:57:32 +0000
commit6a91d28cf161e5a121d7bc09453e23455a109cbb (patch)
treeb69f9c82098dd52863c3d22fc52953eb432bc4c7 /src/libparser/node/keepdiceexecnode.cpp
parentef1e7c6d4244f60094d2c703324f0490320277af (diff)
downloadOneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.tar.gz
OneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.zip
[tree]: improve tree generation
Diffstat (limited to 'src/libparser/node/keepdiceexecnode.cpp')
-rw-r--r--src/libparser/node/keepdiceexecnode.cpp15
1 files changed, 2 insertions, 13 deletions
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;