aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/roundnode.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/roundnode.cpp
parentef1e7c6d4244f60094d2c703324f0490320277af (diff)
downloadOneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.tar.gz
OneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.zip
[tree]: improve tree generation
Diffstat (limited to 'src/libparser/node/roundnode.cpp')
-rw-r--r--src/libparser/node/roundnode.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libparser/node/roundnode.cpp b/src/libparser/node/roundnode.cpp
index 8f825f5..1514f4a 100644
--- a/src/libparser/node/roundnode.cpp
+++ b/src/libparser/node/roundnode.cpp
@@ -2,7 +2,10 @@
#include <diceparser/parsingtoolbox.h>
-RoundNode::RoundNode(Mode mode) : m_scalarResult(new ScalarResult), m_mode(mode) {}
+RoundNode::RoundNode(Mode mode)
+ : ExecutionNode("%1 [label=\"RoundNode\"]"), m_scalarResult(new ScalarResult), m_mode(mode)
+{
+}
void RoundNode::run(ExecutionNode* previous)
{
@@ -38,12 +41,6 @@ void RoundNode::run(ExecutionNode* previous)
m_result= m_scalarResult.get();
}
-QString RoundNode::toString(bool withLabel) const
-{
-
- return withLabel ? QString("%1 [label=\"RoundNode\"]").arg(m_id) : m_id;
-}
-
qint64 RoundNode::getPriority() const
{
qint64 priority= 0;