diff options
Diffstat (limited to 'Source/MapEditor/mygraphicsscene.cpp')
| -rw-r--r-- | Source/MapEditor/mygraphicsscene.cpp | 20 |
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 + } +} |
