diff options
| author | 2020-01-29 01:40:46 +0100 | |
|---|---|---|
| committer | 2020-01-29 01:40:46 +0100 | |
| commit | ec4e06259947921b6958e3cdf27786904a79af2f (patch) | |
| tree | ea3fd9964199a43217419e1317ebb4519264d8d1 /highlightdice.cpp | |
| parent | 825bcda767d2bab9f470d81cd76b9e5985fbea9c (diff) | |
| download | OneRoll-ec4e06259947921b6958e3cdf27786904a79af2f.tar.gz OneRoll-ec4e06259947921b6958e3cdf27786904a79af2f.zip | |
Output tags for dice list.
Diffstat (limited to 'highlightdice.cpp')
| -rw-r--r-- | highlightdice.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/highlightdice.cpp b/highlightdice.cpp index c2abdb6..58d9eec 100644 --- a/highlightdice.cpp +++ b/highlightdice.cpp @@ -75,3 +75,11 @@ void HighLightDice::setFaces(const quint64& faces) { m_faces= faces; } + +QString HighLightDice::getResultString() const +{ + QStringList list; + std::transform(std::begin(m_result), std::end(m_result), std::back_inserter(list), + [](qint64 value) { return QString::number(value); }); + return list.join(","); +} |