diff options
| -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; |