diff options
| author | 2015-05-21 10:48:10 +0200 | |
|---|---|---|
| committer | 2015-05-21 10:48:10 +0200 | |
| commit | 88e5130bd86992819a036ef982733b5ee344d656 (patch) | |
| tree | 99c2a247ae927952243afd60e22faac3ac9f1e55 /diceparser.cpp | |
| parent | 2f24c7b8361d87b67e0a204b1f054d750f650d66 (diff) | |
| download | OneRoll-88e5130bd86992819a036ef982733b5ee344d656.tar.gz OneRoll-88e5130bd86992819a036ef982733b5ee344d656.zip | |
add API to set the link to documentation
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 12 |
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; } |