MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / removeObjectFromSelection

Method removeObjectFromSelection

src/core/map.cpp:1009–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void 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
1021bool Map::removeSymbolFromSelection(const Symbol* symbol, bool emit_selection_changed)
1022{

Callers 10

initImplMethod · 0.80
replaceObjectMethod · 0.80
cutHoleMethod · 0.80
clickPressMethod · 0.80
finishEditingMethod · 0.80
executeForObjectsMethod · 0.80
undoMethod · 0.80
connectPathsClickedMethod · 0.80

Calls 3

eraseMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected