aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/helpnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-10-11 22:13:07 +0200
committerRenaud G <renaud@rolisteam.org>2015-10-11 22:13:07 +0200
commit9e9dd15316e80cae916c532d13ddc5ddc5e93697 (patch)
tree52f0daa73bcd36d3562cb80847cc4536355448fc /node/helpnode.cpp
parent80ff2a99b45a25695321cc84a30a3fbf3b797d54 (diff)
parent1ccb6b4c0454fae8ebc4ebdca9ab74588d3d8707 (diff)
downloadOneRoll-9e9dd15316e80cae916c532d13ddc5ddc5e93697.tar.gz
OneRoll-9e9dd15316e80cae916c532d13ddc5ddc5e93697.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'node/helpnode.cpp')
-rw-r--r--node/helpnode.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp
index dd5f087..6f3916a 100644
--- a/node/helpnode.cpp
+++ b/node/helpnode.cpp
@@ -34,8 +34,7 @@ void HelpNode::run(ExecutionNode* previous)
{
if(previous->getResult() == NULL)
{
- txtResult->setText(toString());
-
+ txtResult->setText(QObject::tr("Rolisteam Dice Parser:\nFull documentation at: %1").arg(m_path));
}
else
{
@@ -49,9 +48,16 @@ void HelpNode::run(ExecutionNode* previous)
m_nextNode->run(this);
}
}
-QString HelpNode::toString() const
+QString HelpNode::toString(bool wl) const
{
- return QObject::tr("Rolisteam Dice Parser:\nFull documentation at: %1 \n").arg(m_path);
+ if(wl)
+ {
+ return QString("%1 [label=\"Rolisteam Dice Parser:\nFull documentation at: %2\"]").arg(m_id).arg(m_path);
+ }
+ else
+ {
+ return m_id;
+ }
}
qint64 HelpNode::getPriority() const