diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-27 13:08:36 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-27 13:08:36 +0100 |
| commit | eb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b (patch) | |
| tree | 363713e712254d9248866f0176780af301284525 /Source/MapEditor/mygraphicsscene.h | |
| parent | 88526570da1d3b8db0db11e232172ab9e8175d8a (diff) | |
| download | airport-eb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b.tar.gz | |
* Added "Save map" function to MapEditor.
* Tiles can be now modified runtime.
+ tileset.ini now allows configuring tileset layout in an easy way.
Diffstat (limited to 'Source/MapEditor/mygraphicsscene.h')
| -rw-r--r-- | Source/MapEditor/mygraphicsscene.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/MapEditor/mygraphicsscene.h b/Source/MapEditor/mygraphicsscene.h index 300cc9c..90dadea 100644 --- a/Source/MapEditor/mygraphicsscene.h +++ b/Source/MapEditor/mygraphicsscene.h @@ -3,14 +3,24 @@ #include <QGraphicsScene> #include <QGraphicsSceneMouseEvent> +#include <QPointF> class MyGraphicsScene : public QGraphicsScene { + Q_OBJECT + public: - MyGraphicsScene(); + explicit MyGraphicsScene(); + ~MyGraphicsScene(); + +signals: + void positionClicked(QPointF); + void noItemSelected(void); + void updateSelectedItem(void); private: void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent); + void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *); }; |
