diff options
| -rw-r--r-- | die.cpp | 4 | ||||
| -rw-r--r-- | die.h | 6 | ||||
| -rw-r--r-- | node/dicerollernode.cpp | 2 | ||||
| -rw-r--r-- | node/dicerollernode.h | 2 |
4 files changed, 7 insertions, 7 deletions
@@ -169,12 +169,12 @@ void Die::setColor(const QString &color) m_color = color; } -quint64 Die::getMaxValue() const +qint64 Die::getMaxValue() const { return m_maxValue; } -void Die::setMaxValue(const quint64 &maxValue) +void Die::setMaxValue(const qint64 &maxValue) { m_maxValue = maxValue; } @@ -128,8 +128,8 @@ public: QString getColor() const; void setColor(const QString &color); - quint64 getMaxValue() const; - void setMaxValue(const quint64 &maxValue); + qint64 getMaxValue() const; + void setMaxValue(const qint64 &maxValue); private: qint64 m_value; @@ -138,7 +138,7 @@ private: bool m_hasValue; bool m_displayStatus; bool m_highlighted; - quint64 m_maxValue; + qint64 m_maxValue; qint64 m_base; QString m_color; diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp index c3062c9..caff889 100644 --- a/node/dicerollernode.cpp +++ b/node/dicerollernode.cpp @@ -9,7 +9,7 @@ -DiceRollerNode::DiceRollerNode(quint64 max,qint64 min) +DiceRollerNode::DiceRollerNode(qint64 max,qint64 min) : m_max(max),m_diceResult(new DiceResult()),m_min(min) { m_result=m_diceResult; diff --git a/node/dicerollernode.h b/node/dicerollernode.h index ab5c47f..dcdbeb2 100644 --- a/node/dicerollernode.h +++ b/node/dicerollernode.h @@ -17,7 +17,7 @@ public: * @param faces, number of faces of dices * @param offset, first value of dice. */ - DiceRollerNode(quint64 max, qint64 min = 1); + DiceRollerNode(qint64 max, qint64 min = 1); /** * @brief run - starts to roll dice. |