From 88e5130bd86992819a036ef982733b5ee344d656 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 21 May 2015 10:48:10 +0200 Subject: add API to set the link to documentation --- diceparser.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'diceparser.cpp') 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; } -- cgit v1.2.3-70-g09d2