bool PartController::Destroy(Part &part, QWidget *caller) { if (Destroy(part.getId(), caller)) { part = Part(); return true; } return false; }