From 653ba9395a36cc20ec1d68c9a9cae78973fa334c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 30 Jan 2020 01:27:15 +0100 Subject: add unicity and repeat function part2 --- result/diceresult.cpp | 2 +- result/diceresult.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'result') 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) #endif // DICERESULT_H -- cgit v1.2.3-70-g09d2