mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-11 19:35:38 -05:00
Convert selected_events from DraggablePixmapItem to Event
This commit is contained in:
@@ -229,6 +229,10 @@ int Map::getIndexOfEvent(Event *event) const {
|
||||
return m_events.value(event->getEventGroup()).indexOf(event);
|
||||
}
|
||||
|
||||
bool Map::hasEvent(Event *event) const {
|
||||
return getIndexOfEvent(event) >= 0;
|
||||
}
|
||||
|
||||
void Map::deleteConnections() {
|
||||
qDeleteAll(m_ownedConnections);
|
||||
m_ownedConnections.clear();
|
||||
|
||||
Reference in New Issue
Block a user