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

--- Comment #4 from Ralf Habacker <ralf.habac...@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 watching all bug changes.

Reply via email to