From 527011e141ea8022a2bb41a52ef64fbb6cac0cfe Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 12 Feb 2017 11:19:57 +0100 Subject: -remove unsigned --- die.cpp | 4 ++-- die.h | 6 +++--- node/dicerollernode.cpp | 2 +- node/dicerollernode.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/die.cpp b/die.cpp index 49b30ac..87fdd3c 100644 --- a/die.cpp +++ b/die.cpp @@ -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; } diff --git a/die.h b/die.h index 5899bab..b0b44ad 100644 --- a/die.h +++ b/die.h @@ -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. -- cgit v1.2.3-70-g09d2