handle now also section view, detail view and view

This commit is contained in:
donovaly
2020-03-04 01:28:37 +01:00
committed by WandererFan
parent 941ce9c43c
commit ead6cfea71
5 changed files with 81 additions and 8 deletions

View File

@@ -187,6 +187,14 @@ void ViewProviderViewSection::getParameters(void)
WeightPattern.setValue(lineWeight);
}
bool ViewProviderViewSection::canDelete(App::DocumentObject *obj) const
{
// a section view can be deleted
// that its base view cannot be deleted is handled in its the onDelete() function
Q_UNUSED(obj)
return true;
}
TechDraw::DrawViewSection* ViewProviderViewSection::getViewObject() const
{
return dynamic_cast<TechDraw::DrawViewSection*>(pcObject);