diff options
| author | 2015-04-22 18:38:32 +0200 | |
|---|---|---|
| committer | 2015-04-22 18:38:32 +0200 | |
| commit | bb60ef6acfe0cde680f16cb00188fa2f97e7c6ec (patch) | |
| tree | 01238f71b20ffbe52baeb4961522348468bbc380 | |
| parent | b36a3b448603514c392a8db8160af72788731c44 (diff) | |
| download | OneRoll-bb60ef6acfe0cde680f16cb00188fa2f97e7c6ec.tar.gz OneRoll-bb60ef6acfe0cde680f16cb00188fa2f97e7c6ec.zip | |
add dice api to manage highlight
| -rw-r--r-- | die.cpp | 2 | ||||
| -rw-r--r-- | die.h | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -26,7 +26,7 @@ #include <QDebug> Die::Die() - : m_hasValue(false),m_displayStatus(false) + : m_hasValue(false),m_displayStatus(false),m_highlighted(true) { uint seed = quintptr(this) + QDateTime::currentDateTime().toMSecsSinceEpoch(); qsrand(seed); @@ -109,6 +109,15 @@ public: * @brief displayed */ void displayed(); + /** + * @brief setHighlighted + */ + void setHighlighted(bool); + /** + * @brief isHighlighted + * @return + */ + bool isHighlighted(); private: qint64 m_value; @@ -116,6 +125,7 @@ private: bool m_selected; bool m_hasValue; bool m_displayStatus; + bool m_highlighted; quint64 m_faces; }; |