diff options
| author | 2015-12-24 11:25:16 +0100 | |
|---|---|---|
| committer | 2015-12-24 11:25:16 +0100 | |
| commit | 8f388a9ec72c7af6832a65ec3cfdd80fa7413492 (patch) | |
| tree | eefdc247be4be16b94d62b0a8a0c3fc7cb5b0475 /result/diceresult.cpp | |
| parent | 8572e4c63bf4c3b1decfb95e09960f899f198dd2 (diff) | |
| download | OneRoll-8f388a9ec72c7af6832a65ec3cfdd80fa7413492.tar.gz OneRoll-8f388a9ec72c7af6832a65ec3cfdd80fa7413492.zip | |
Adding new status "isHomogeneous" for diceresult.
Diffstat (limited to 'result/diceresult.cpp')
| -rw-r--r-- | result/diceresult.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp index ceb77b8..57e9da4 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -24,6 +24,7 @@ DiceResult::DiceResult() { m_resultTypes= (DICE_LIST); + m_homogeneous = true; } void DiceResult::insertResult(Die* die) { @@ -33,6 +34,15 @@ QList<Die*>& DiceResult::getResultList() { return m_diceValues; } +bool DiceResult::isHomogeneous() const +{ + return m_homogeneous; +} +void DiceResult::setHomogeneous(bool b) +{ + m_homogeneous = b; +} + void DiceResult::setResultList(QList<Die*> list) { qDeleteAll(m_diceValues.begin(), m_diceValues.end()); |