| 990 | } |
| 991 | |
| 992 | void Map::addObjectToSelection(Object* object, bool emit_selection_changed) |
| 993 | { |
| 994 | Q_ASSERT(!isObjectSelected(object)); |
| 995 | |
| 996 | // we omit hidden and protected objects from any kind of selection |
| 997 | const auto* object_symbol = object->getSymbol(); |
| 998 | if (object_symbol->isProtected() || object_symbol->isHidden()) |
| 999 | return; |
| 1000 | |
| 1001 | object_selection.insert(object); |
| 1002 | addSelectionRenderables(object); |
| 1003 | if (!first_selected_object) |
| 1004 | first_selected_object = object; |
| 1005 | if (emit_selection_changed) |
| 1006 | emit objectSelectionChanged(); |
| 1007 | } |
| 1008 | |
| 1009 | void Map::removeObjectFromSelection(Object* object, bool emit_selection_changed) |
| 1010 | { |
no test coverage detected