diff options
Diffstat (limited to 'qtminesweeper.h')
-rw-r--r-- | qtminesweeper.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/qtminesweeper.h b/qtminesweeper.h index 7de2953..19d4240 100644 --- a/qtminesweeper.h +++ b/qtminesweeper.h @@ -19,8 +19,10 @@ #include <QtGui> #include <QWidget> +#include <QList> #include "selector.h" #include "cell.h" +#include "constants.h" class qtminesweeper : public QWidget { @@ -30,8 +32,20 @@ class qtminesweeper : public QWidget explicit qtminesweeper(); /* init function */ private: - cur curs; /* cursor instance */ - + QPen blackpen; + QPen whitepen; + QPen redpen; + QPen greenpen; + QPen bluepen; + + void drawgrid(QPainter *painter); + void drawcursor(QPainter *painter); + void drawcells(QPainter *painter); + void generatecellpos(cell *c); + + selector cursor; + QList<cell> cells; + protected: void paintEvent(QPaintEvent *event); void keyPressEvent(QKeyEvent *event); |