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

Method addObjectToSelection

src/core/map.cpp:992–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992void 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
1009void Map::removeObjectFromSelection(Object* object, bool emit_selection_changed)
1010{

Callers 15

finishEditingMethod · 0.80
fillBoundaryMethod · 0.80
replaceObjectMethod · 0.80
finishEditingMethod · 0.80
cutHoleMethod · 0.80
finishDrawingMethod · 0.80
createObjectMethod · 0.80
clickReleaseMethod · 0.80
selectAtMethod · 0.80
selectBoxMethod · 0.80
importPathFunction · 0.80

Calls 4

isProtectedMethod · 0.80
isHiddenMethod · 0.80
getSymbolMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected