diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-27 00:26:41 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-27 00:26:41 +0100 |
| commit | 3de2130b6070bb9012d81e290fda452db42e069f (patch) | |
| tree | 7158dd9eba7514824f5c85494fea7a967676f10a /Source/MapEditor/mygraphicsscene.cpp | |
| parent | f8f976763b4d272b4801f8b99eb542caa12fc3fe (diff) | |
| download | airport-3de2130b6070bb9012d81e290fda452db42e069f.tar.gz | |
TILE_TAXIWAY_CORNER_GRASS_3 added to accepted tiles list.
Building edition is now supported on MapEditor!
LEVEL2.LVL now has some buildings laying around.
Diffstat (limited to 'Source/MapEditor/mygraphicsscene.cpp')
| -rw-r--r-- | Source/MapEditor/mygraphicsscene.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/MapEditor/mygraphicsscene.cpp b/Source/MapEditor/mygraphicsscene.cpp index d0241ae..dcc7d1c 100644 --- a/Source/MapEditor/mygraphicsscene.cpp +++ b/Source/MapEditor/mygraphicsscene.cpp @@ -11,12 +11,12 @@ MyGraphicsScene::~MyGraphicsScene() } -void MyGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent) +void MyGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent* const mouseEvent) { - QGraphicsItem *it = this->itemAt(mouseEvent->scenePos(), QTransform()); + const QGraphicsItem* const it = itemAt(mouseEvent->scenePos(), QTransform()); if (it != nullptr) - { + { emit positionClicked(mouseEvent->scenePos()); } else @@ -26,7 +26,7 @@ void MyGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent) } } -void MyGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *) +void MyGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* const mouseEvent) { - emit updateSelectedItem(); + emit updateSelectedItem(mouseEvent->button()); } |
