From 4b5b84ed36a3fe3a8ffc50912b146f8641133da0 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 7 Sep 2020 11:58:06 -0400 Subject: [PATCH] Fix status bar not updating while dragging events --- src/ui/draggablepixmapitem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/draggablepixmapitem.cpp b/src/ui/draggablepixmapitem.cpp index 432a3ba2..1743ab50 100644 --- a/src/ui/draggablepixmapitem.cpp +++ b/src/ui/draggablepixmapitem.cpp @@ -75,8 +75,7 @@ void DraggablePixmapItem::mouseMoveEvent(QGraphicsSceneMouseEvent *mouse) { if (active) { int x = static_cast(mouse->pos().x() + this->pos().x()) / 16; int y = static_cast(mouse->pos().y() + this->pos().y()) / 16; - this->editor->playerViewRect->updateLocation(x, y); - this->editor->cursorMapTileRect->updateLocation(x, y); + emit this->editor->map_item->hoveredMapMetatileChanged(x, y); if (x != last_x || y != last_y) { QList selectedEvents; if (editor->selected_events->contains(this)) {