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

Method updatePreviewObjects

src/tools/tool_base.cpp:459–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void MapEditorToolBase::updatePreviewObjects()
460{
461 if (!editingInProgress())
462 {
463 qWarning("MapEditorToolBase::updatePreviewObjects() called but editing == false");
464 return;
465 }
466 for (auto object : editedObjects())
467 {
468 object->forceUpdate(); /// @todo get rid of force if possible;
469 // NOTE: only necessary because of setMap(nullptr) in startEditing(..)
470 renderables->insertRenderablesOfObject(object);
471 }
472 updateDirtyRect();
473}
474
475void MapEditorToolBase::updatePreviewObjectsAsynchronously()
476{

Callers

nothing calls this directly

Calls 2

forceUpdateMethod · 0.80

Tested by

no test coverage detected