diff options
| author | 2020-01-30 01:27:15 +0100 | |
|---|---|---|
| committer | 2020-03-28 02:05:05 +0100 | |
| commit | 653ba9395a36cc20ec1d68c9a9cae78973fa334c (patch) | |
| tree | 72753ed3bdca117baf001cdf8251b1fb22276eeb /result | |
| parent | 22d71d0032e2f44a8f267895aea3bd87864791b3 (diff) | |
| download | OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.tar.gz OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.zip | |
add unicity and repeat function part2
Diffstat (limited to 'result')
| -rw-r--r-- | result/diceresult.cpp | 2 | ||||
| -rw-r--r-- | result/diceresult.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp index 23b925e..083c683 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -73,7 +73,7 @@ QVariant DiceResult::getResult(Dice::RESULT_TYPE type) } case Dice::RESULT_TYPE::DICE_LIST: { - return QVariant(); + return QVariant::fromValue(m_diceValues); } default: break; diff --git a/result/diceresult.h b/result/diceresult.h index ce8ffb7..8f30340 100644 --- a/result/diceresult.h +++ b/result/diceresult.h @@ -92,5 +92,5 @@ private: bool m_homogeneous; Die::ArithmeticOperator m_operator; }; - +Q_DECLARE_METATYPE(QList<Die*>) #endif // DICERESULT_H |