aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/helpnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/helpnode.cpp')
-rw-r--r--node/helpnode.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp
index a11c2b3..8fc7e93 100644
--- a/node/helpnode.cpp
+++ b/node/helpnode.cpp
@@ -2,21 +2,24 @@
HelpNode::HelpNode()
{
+ m_result = new StringResult();
}
void HelpNode::run(ExecutionNode* previous)
{
+ StringResult* txtResult = dynamic_cast<StringResult*>(m_result);
if(NULL != previous)
{
+ txtResult->setText(toString());
}
else
{
-
+ txtResult->setText(previous->getHelp());
}
}
QString HelpNode::toString()const
{
- return QObject::tr("see full documentation at: <a href=\"https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md\">https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md</a>");
+ return QObject::tr("Rolisteam Dice Parser: Full documentation at: <a href=\"https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md\">https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md</a>");
}
qint64 HelpNode::getPriority() const