Convert selected_events from DraggablePixmapItem to Event

This commit is contained in:
GriffinR
2025-02-16 18:03:24 -05:00
parent ac8db41299
commit 88f5a90b2f
8 changed files with 86 additions and 130 deletions

View File

@@ -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();