From 239051eff0ca6f28a4143c0f680c2600b2b0cb64 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 17 Jan 2016 01:57:18 +0100 Subject: Add comments to dice alias --- dicealias.cpp | 10 ++++++++++ dicealias.h | 12 ++++++++++++ 2 files changed, 22 insertions(+) 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; -- cgit v1.2.3-70-g09d2