From bb60ef6acfe0cde680f16cb00188fa2f97e7c6ec Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 22 Apr 2015 18:38:32 +0200 Subject: add dice api to manage highlight --- die.cpp | 2 +- die.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/die.cpp b/die.cpp index d8be064..2a70bc0 100644 --- a/die.cpp +++ b/die.cpp @@ -26,7 +26,7 @@ #include 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); diff --git a/die.h b/die.h index 5ef2bc2..c9ed28a 100644 --- a/die.h +++ b/die.h @@ -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; }; -- cgit v1.2.3-70-g09d2