[Uml-devel] Some fixes for sequence diagrams - at least partly very important
Oliver Kellogg
Oliver.Kellogg at t-online.de
Mon Jul 19 13:21:10 UTC 2004
One more thing,
> d) Some small changes: The warning about UMLWidget::adjustAssocs(),
> AssociationWidget::moveEvent() and AssociationWidget::widgetMoved()
> prints now also the type of diagram and type of element in the debug
> stream.
> Thus we can trace the event chain better, to avoid all these move
> activities during project load, where only the initial state shall be
> reloaded.
>
One of the common paths was this:
#0 UMLWidget::adjustAssocs(int, int) (x=0, y=0)
at umlwidget.cpp:749
#1 XyzWidget::calculateSize()
#2 UMLWidget::forceUpdateFontMetrics(QPainter*)
at umlwidget.cpp:1062
#3 UMLWidget::setFont(QFont)
at umlwidget.cpp:1043
#4 UMLWidget::loadFromXMI(QDomElement&)
at umlwidget.cpp:1131
#5 XyzWidget::loadFromXMI(QDomElement&)
So I took the setFont call out from this path and moved to
UMLWidget::activate().
Your adjustAssocs() warning no longer happens for me now.
--Oliver
More information about the umbrello-devel
mailing list