aboutsummaryrefslogtreecommitdiff
path: root/Source/MapEditor/mygraphicsscene.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
commit4eaa6c091f97ca3455b2ae48a5f68867c0f7768e (patch)
tree79ae89ae5b7399c774ae6fcb792c109a725e1af8 /Source/MapEditor/mygraphicsscene.cpp
parentf06d582d63b1f91e48ecb17a11987217144c5c79 (diff)
downloadairport-4eaa6c091f97ca3455b2ae48a5f68867c0f7768e.tar.gz
* Slight optimization: all comparations against true are now compared against != false.
+ Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
Diffstat (limited to 'Source/MapEditor/mygraphicsscene.cpp')
-rw-r--r--Source/MapEditor/mygraphicsscene.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/MapEditor/mygraphicsscene.cpp b/Source/MapEditor/mygraphicsscene.cpp
new file mode 100644
index 0000000..391931e
--- /dev/null
+++ b/Source/MapEditor/mygraphicsscene.cpp
@@ -0,0 +1,20 @@
+#include "mygraphicsscene.h"
+#include <QDebug>
+
+MyGraphicsScene::MyGraphicsScene()
+{
+
+}
+
+void MyGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
+{
+ QGraphicsItem *it = this->itemAt(mouseEvent->scenePos(), QTransform());
+ if (it != NULL)
+ {
+
+ }
+ else
+ {
+ // No items selected
+ }
+}