aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-05-21 10:48:10 +0200
committerRenaud G <renaud@rolisteam.org>2015-05-21 10:48:10 +0200
commit88e5130bd86992819a036ef982733b5ee344d656 (patch)
tree99c2a247ae927952243afd60e22faac3ac9f1e55 /diceparser.cpp
parent2f24c7b8361d87b67e0a204b1f054d750f650d66 (diff)
downloadOneRoll-88e5130bd86992819a036ef982733b5ee344d656.tar.gz
OneRoll-88e5130bd86992819a036ef982733b5ee344d656.zip
add API to set the link to documentation
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index f8f82d6..570c96b 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -593,7 +593,10 @@ bool DiceParser::readCommand(QString& str,ExecutionNode* & node)
{
if(str=="help")
{
- node = new HelpNode();
+ HelpNode* help = new HelpNode();
+ help->setHelpPath(m_helpPath);
+ node = help;
+
}
else if(str=="la")
{
@@ -929,7 +932,8 @@ void DiceParser::writeDownDotTree(QString filepath)
QTextStream in(&file);
in << str;
}
-
- //qDebug()<< str;
-
+}
+void DiceParser::setPathToHelp(QString l)
+{
+ m_helpPath = l;
}