diff options
| author | 2026-03-15 11:42:31 +0100 | |
|---|---|---|
| committer | 2026-03-15 10:57:32 +0000 | |
| commit | 6a91d28cf161e5a121d7bc09453e23455a109cbb (patch) | |
| tree | b69f9c82098dd52863c3d22fc52953eb432bc4c7 /src/libparser/node/helpnode.cpp | |
| parent | ef1e7c6d4244f60094d2c703324f0490320277af (diff) | |
| download | OneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.tar.gz OneRoll-6a91d28cf161e5a121d7bc09453e23455a109cbb.zip | |
[tree]: improve tree generation
Diffstat (limited to 'src/libparser/node/helpnode.cpp')
| -rw-r--r-- | src/libparser/node/helpnode.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libparser/node/helpnode.cpp b/src/libparser/node/helpnode.cpp index e8edc9c..7716ce6 100644 --- a/src/libparser/node/helpnode.cpp +++ b/src/libparser/node/helpnode.cpp @@ -51,14 +51,9 @@ void HelpNode::run(ExecutionNode* previous) } QString HelpNode::toString(bool wl) const { - if(wl) - { - return QString("%1 [label=\"%3 : %2\"]").arg(m_id, m_path, tr("Rolisteam Dice Parser:\nFull documentation at")); - } - else - { - return m_id; - } + return wl ? QString("%1 [label=\"%3 : %2\"]") + .arg(m_id, m_path, tr("Rolisteam Dice Parser:\nFull documentation at")) : + ExecutionNode::toString(wl); } qint64 HelpNode::getPriority() const |