| 457 | } |
| 458 | |
| 459 | void 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 | |
| 475 | void MapEditorToolBase::updatePreviewObjectsAsynchronously() |
| 476 | { |
nothing calls this directly
no test coverage detected