[umbrello] [Bug 447866] [class diagram] Multiple association ends are drawn on the same edge point

Oliver Kellogg bugzilla_noreply at kde.org
Sat Jan 8 08:20:45 GMT 2022


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

--- Comment #8 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit dc485c16219a61d802ddf462f809e9cd7c514af3 by Oliver Kellogg.
Committed on 08/01/2022 at 08:19.
Pushed by okellogg into branch 'master'.

First stab at smoothing associationwidget endpoint update as announced
  in https://bugs.kde.org/show_bug.cgi?id=447866#c5

umbrello/umlwidgets/associationwidget.{h,cpp}
- At function calculateEndingPoints add argument UMLWidget *pWidget
  indicating the selected widget of move or resize.  If passed in as
  null then updateAssociations() will be called twice, once for the
  current associationwidget's role A widget and again for its role B
  widget.
- Add function findIntercept(const QRectF& rect, const QPointF& point,
                                                       QPointF& result)
  returning bool true if the line from the center of `rect' to `point'
  intersects with one of rect's sides, and returning the intersection
  point in `result'.
- Remove functions updateRegionLineCount and doUpdates.
- Declare function updateAssociations `static' and change arguments to
    UMLWidget *pWidget, AssociationWidgetList list.
  For details see documentation at the implementation.

M  +184  -285  umbrello/umlwidgets/associationwidget.cpp
M  +3    -12   umbrello/umlwidgets/associationwidget.h

https://invent.kde.org/sdk/umbrello/commit/dc485c16219a61d802ddf462f809e9cd7c514af3

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


More information about the umbrello-devel mailing list