diff options
| author | 2016-01-17 01:57:18 +0100 | |
|---|---|---|
| committer | 2016-01-17 01:57:18 +0100 | |
| commit | 239051eff0ca6f28a4143c0f680c2600b2b0cb64 (patch) | |
| tree | b1a424fadfef70244eadbe07979f69c9ed2019e2 | |
| parent | d3b925e690b56ef4dce68246661f5c55a93564cf (diff) | |
| download | OneRoll-239051eff0ca6f28a4143c0f680c2600b2b0cb64.tar.gz OneRoll-239051eff0ca6f28a4143c0f680c2600b2b0cb64.zip | |
Add comments to dice alias
| -rw-r--r-- | dicealias.cpp | 10 | ||||
| -rw-r--r-- | dicealias.h | 12 |
2 files changed, 22 insertions, 0 deletions
diff --git a/dicealias.cpp b/dicealias.cpp index 59e8d69..08adb7a 100644 --- a/dicealias.cpp +++ b/dicealias.cpp @@ -112,3 +112,13 @@ void DiceAlias::setEnable(bool b) { m_isEnable = b; } + +QString DiceAlias::getComment() const +{ + return m_comment; +} + +void DiceAlias::setComment(const QString &comment) +{ + m_comment = comment; +} diff --git a/dicealias.h b/dicealias.h index 189b0f9..51ee5d3 100644 --- a/dicealias.h +++ b/dicealias.h @@ -93,9 +93,21 @@ public: * @param b */ void setEnable(bool b); + /** + * @brief getComment + * @return + */ + QString getComment() const; + /** + * @brief setComment + * @param comment + */ + void setComment(const QString &comment); + private: QString m_command; QString m_value; + QString m_comment; RESOLUTION_TYPE m_type; bool m_isEnable; |