From d3e70eb68019f7d4e866dbda6ee8463ec5ad901b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 21 Sep 2020 15:38:11 +0200 Subject: Given files L3 tiles --- labb3/tiles/mainwindow.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 labb3/tiles/mainwindow.h (limited to 'labb3/tiles/mainwindow.h') diff --git a/labb3/tiles/mainwindow.h b/labb3/tiles/mainwindow.h new file mode 100644 index 0000000..cbecb7c --- /dev/null +++ b/labb3/tiles/mainwindow.h @@ -0,0 +1,35 @@ +/* + * TDDD86 Tiles + * This file contains the declaration of the mainwindow class. + * See mainwindow.cpp for implementation of each member. + * Your code should work properly with an unmodified version of this file. + */ + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include +#include +#include +#include "TileList.h" + +class MainWindow : public QGraphicsView +{ + Q_OBJECT +public: + explicit MainWindow(QWidget *parent = 0); + +signals: + +public slots: + void mousePressEvent(QMouseEvent *e); + void keyPressEvent(QKeyEvent *k); + +private: + void addRandomTile(TileList& tlist); + + QGraphicsScene* scene; + TileList tlist; +}; + +#endif // MAINWINDOW_H -- cgit v1.2.1