/** * Updates the map object items related to the given objects. */ void MapScene::objectsChanged(const QList<MapObject*> &objects) { for (MapObject *object : objects) { MapObjectItem *item = itemForObject(object); Q_ASSERT(item); item->syncWithMapObject(); } }
/** * Updates the map object items related to the given objects. */ void MapItem::objectsChanged(const QList<MapObject*> &objects) { for (MapObject *object : objects) { MapObjectItem *item = mObjectItems.value(object); Q_ASSERT(item); item->syncWithMapObject(); } }