diff options
| author | 2020-10-21 11:34:58 +0200 | |
|---|---|---|
| committer | 2020-10-21 11:34:58 +0200 | |
| commit | 671bf7bdf20ccc61339d0959b1fb2f81a316825b (patch) | |
| tree | 595be6924b831977a8680bb3be9c5bccdf2bc4a6 /include/diceparser.h | |
| parent | d1a947bed91963e788287e186f831202b8355eea (diff) | |
| download | OneRoll-671bf7bdf20ccc61339d0959b1fb2f81a316825b.tar.gz OneRoll-671bf7bdf20ccc61339d0959b1fb2f81a316825b.zip | |
fix output
Diffstat (limited to 'include/diceparser.h')
| -rw-r--r-- | include/diceparser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/diceparser.h b/include/diceparser.h index 8951a99..3c42bcc 100644 --- a/include/diceparser.h +++ b/include/diceparser.h @@ -99,14 +99,15 @@ public: QList<qreal> scalarResultsFromEachInstruction() const; QStringList stringResultFromEachInstruction(bool& hasAlias) const; void diceResultFromEachInstruction(QList<ExportedDiceResult>& resultList) const; - QString finalStringResult() const; + QString finalStringResult(std::function<QString(const QString&, const QString&, bool)> colorize) const; QString diceCommand() const; QMap<Dice::ERROR_CODE, QString> errorMap() const; QString comment() const; QString humanReadableWarning() const; QString humanReadableError() const; - QString resultAsJSon(std::function<QString(const QString&, const QString&, bool)> colorize) const; + QString resultAsJSon(std::function<QString(const QString&, const QString&, bool)> colorize, + bool removeUnhighligthed= false) const; // QStringList stringResult() const; // QStringList allDiceResult(bool& hasAlias) const; |