/** * Deletes an entity with the background color. * Might be recusively called e.g. for polylines. */ void RS_GraphicView::deleteEntity(RS_Entity* e) { // RVT_PORT When we delete a single entoty, we can do this but we need to remove this then also from containerEntities RS_DEBUG->print("RS_GraphicView::deleteEntity will for now redraw the whole screen instead of just deleting the entity"); setDeleteMode(true); drawEntity(e); setDeleteMode(false); redraw(RS2::RedrawDrawing); }
void DeleteWidget::slotShouldDelete(bool shouldDelete) { setDeleteMode(shouldDelete ? DeleteDialogMode::DeletePermanently : DeleteDialogMode::UseTrash); }