draw selected event on top when stacked
This commit is contained in:
parent
c189d2fac8
commit
4774def5cd
1 changed files with 2 additions and 0 deletions
|
@ -1215,6 +1215,7 @@ void Editor::redrawObject(DraggablePixmapItem *item) {
|
|||
painter.end();
|
||||
item->setPixmap(QPixmap::fromImage(image));
|
||||
}
|
||||
item->updatePosition();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1242,6 +1243,7 @@ void Editor::selectMapEvent(DraggablePixmapItem *object, bool toggle) {
|
|||
selected_events->append(object);
|
||||
}
|
||||
updateSelectedEvents();
|
||||
object->setZValue(object->y() + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue