summaryrefslogtreecommitdiff
path: root/src/sudokuwidget.h
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-08-03 09:31:17 +0000
committerStijn Buys <ingar@osirion.org>2013-08-03 09:31:17 +0000
commitd7f292f0abbffb24dc683d754a2ab4b8b2938cc0 (patch)
treeab84004b8ab38916803ac39feea84f111b59df73 /src/sudokuwidget.h
parent850441d72ad73e6bcf3570e3f62287c28eaead31 (diff)
Adds an option to mark cells with a unique solution.
Diffstat (limited to 'src/sudokuwidget.h')
-rw-r--r--src/sudokuwidget.h11
1 files changed, 10 insertions, 1 deletions
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();