Skip to content
Commit d6f1ebc2 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

umbrello/petaltree2uml.cpp improvements on converting diagram elements:

- Move viewTagToWidget from function umbrellify to global level and
  reset it to empty on beginning parse of diagram.
- In function handleAssocView :
  - Do not fail if attribute "roleview_list" is not found.  Reason:
    InheritView, RealizeView, and UsesView do not have this attribute.
  - If "roleview_list" is not present then retrieve `supplier` and
    `client` using attr->findAttribute() for "supplier" and "client",
    respectively.
  - Move locals supW and cliW up to wider scope in order to attempt
    their retrieval from viewTagToWidget[supplier] and
    viewTagToWidget[client], respectively. Execute the code involving
    view->umlScene()->widgetOnDiagram() only if client and/or supplier
    is not a key in viewTagToWidget.
- In function umbrellify case (dt != Uml::DiagramType::Undefined) :
  - Clear viewTagToWidget.
  - In for-loop over atts, on handling CategoryView/ClassView etc
    retrieve attribute "icon" from attr. If it is "Interface" then
    - set local pointer cw to dynamic_cast<ClassifierWidget*>(w);
    - if cw is non null then set visual property `DrawAsCircle` on cw.

CCBUG: 81364
parent f299a431
Pipeline #156964 passed with stage
in 26 minutes and 18 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment