aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result
diff options
context:
space:
mode:
Diffstat (limited to 'result')
-rw-r--r--result/diceresult.cpp2
-rw-r--r--result/diceresult.h2
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