diff options
| author | 2020-04-01 00:48:15 +0200 | |
|---|---|---|
| committer | 2020-04-01 00:48:15 +0200 | |
| commit | 4418146f8553c670be2548ad4e5c1d024e91e2ad (patch) | |
| tree | 89807162cc56575f8560655da8e614995dc39417 /node/helpnode.cpp | |
| parent | 14b2b264097cebb05237164f7320ad4b4fbbfba0 (diff) | |
| download | OneRoll-4418146f8553c670be2548ad4e5c1d024e91e2ad.tar.gz OneRoll-4418146f8553c670be2548ad4e5c1d024e91e2ad.zip | |
New Api for string result subclass dice result.
Diffstat (limited to 'node/helpnode.cpp')
| -rw-r--r-- | node/helpnode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp index 7748012..af1b2fd 100644 --- a/node/helpnode.cpp +++ b/node/helpnode.cpp @@ -31,7 +31,7 @@ void HelpNode::run(ExecutionNode* previous) if((nullptr == previous) && (txtResult != nullptr)) { - txtResult->setText(QObject::tr("Rolisteam Dice Parser:\n" + txtResult->addText(QObject::tr("Rolisteam Dice Parser:\n" "\n" "Example (with ! as prefix):\n" "!2d6\n" @@ -100,9 +100,10 @@ void HelpNode::run(ExecutionNode* previous) } else if(nullptr != previous) { - txtResult->setText(previous->getHelp()); + txtResult->addText(previous->getHelp()); m_result->setPrevious(previous->getResult()); } + txtResult->finished(); if(nullptr != m_nextNode) { |