From d7f292f0abbffb24dc683d754a2ab4b8b2938cc0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 3 Aug 2013 09:31:17 +0000 Subject: Adds an option to mark cells with a unique solution. --- src/sudokuwidget.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/sudokuwidget.h') diff --git a/src/sudokuwidget.h b/src/sudokuwidget.h index 9ca6098..fb13234 100644 --- a/src/sudokuwidget.h +++ b/src/sudokuwidget.h @@ -30,7 +30,15 @@ public: * @brief return the default size hint for this widget * */ virtual QSize sizeHint() const; - + + inline const bool showHintUnique() const + { + return m_showHintUnique; + } + + void setShowHintUnique(const bool hintunique = true); + + protected: /** * @brief handle paint events @@ -44,6 +52,7 @@ protected: private: QLineEdit * sudokuwidget_value[9][9]; + bool m_showHintUnique; private slots: void verify(); -- cgit v1.2.3