[umbrello] [Bug 376804] "Else" part outside of alternative combined fragment on creation

Ralf Habacker bugzilla_noreply at kde.org
Sat Jul 15 08:17:19 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=376804

--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Alessandro Stranieri from comment #3)
> I have debugged this flow around the suggested location in the code.
Good work :-)
> This means that at that moment, any call to methods like y() or
> height() won't return useful values. The solution would be for me to
> post-pone the set-up of the FloatingDashLineWidget within the
> UMLScene::setupNewWidget().

setupNewWidget() calls a virtual method UMLWidget::activate() which could be
used for that purpose. 

1. CombinedFragmentWidget need to have a new virtual method activate() which
setup up positions according to the current fragementtype 
2. setCombinedFragmentType() saves only the wanted state and calls activate()
only if already activated e.g. widget is full constructed

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list