| 1007 | } |
| 1008 | |
| 1009 | void Map::removeObjectFromSelection(Object* object, bool emit_selection_changed) |
| 1010 | { |
| 1011 | bool removed = object_selection.erase(object); |
| 1012 | Q_ASSERT(removed && "Map::removeObjectFromSelection: object was not selected!"); |
| 1013 | Q_UNUSED(removed); |
| 1014 | removeSelectionRenderables(object); |
| 1015 | if (first_selected_object == object) |
| 1016 | first_selected_object = object_selection.empty() ? nullptr : *object_selection.begin(); |
| 1017 | if (emit_selection_changed) |
| 1018 | emit objectSelectionChanged(); |
| 1019 | } |
| 1020 | |
| 1021 | bool Map::removeSymbolFromSelection(const Symbol* symbol, bool emit_selection_changed) |
| 1022 | { |
no test coverage detected