[umbrello-devel] [umbrello] [Bug 115269] Implement the UML 2.0 standard
Oliver Kellogg
okellogg at users.sourceforge.net
Sun May 25 20:35:21 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=115269
--- Comment #14 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit 900fd73f007dc6710b9b353f1db998ed8ce57abc by Oliver Kellogg.
Committed on 25/05/2014 at 20:35.
Pushed by okellogg into branch 'master'.
Refinement to commit cdba7fe attachment of port to component on diagram
umbrello/widgets/portwidget.cpp
- In function moveWidgetBy(),
- If port is at left or right edge of owner then
- If newX is smaller than owner->x() - width() then clip newX to
owner->x() - width()
- If newX is greater than owner->x() + owner->width() then clip newX to
owner->x() + owner->width()
- If port is at top or bottom edge of owner then
- If newY is smaller than owner->y() - height() then clip newY to
owner->y() - height()
- If newY is greater than owner->y() + owner->height() then clip newY
to owner->y() + owner->height()
- In function attachToOwningComponent(),
- If scenePos.x() is in the range
[ owner->x() - width() : owner->x() + owner->width() ]
then use scenePos.x() unmodified in call to setX().
- If scenePos.y() is in the range
[ owner->y() - height() : owner->y() + owner->height() ]
then use scenePos.y() unmodified in call to setY().
Known issue:
On moving a ComponentWidget, its attached PortWidgets should move along.
M +28 -16 umbrello/widgets/portwidget.cpp
http://commits.kde.org/umbrello/900fd73f007dc6710b9b353f1db998ed8ce57abc
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list