Bug 509729

Summary: Links do not move with class when dragged in class diagram
Product: [Applications] umbrello Reporter: fred
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.08.2
Sentry Crash Report:
Bug Depends on: 447866    
Bug Blocks:    

Description fred 2025-09-20 20:17:25 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Moving imported C++ classes around in class diagram often results in inheritance and has-a connections not moving with the class.

STEPS TO REPRODUCE
1. Import some C++ classes with has-a and inheritance relationships between them
2. Drag these into a class diagram
3. Move a class related to another in the diagram

OBSERVED RESULT
The class will move as expected, but the link with the other class will not. Furthermore, moving the other class results in an orphaned link.

EXPECTED RESULT
The links should move with the class

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0

Qt Version: 5.15.13
Kernel Version: 6.14.0-29-generic (64-bit)
Graphics Platform: offscreen
Processors: 16 × Intel® Core™ i9-9900K CPU @ 3.60GHz
Memory: 62.7 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 Ralf Habacker 2025-11-17 12:44:57 UTC
Git commit 5cad551722374ce3735e59984e43c1a46c3021b8 by Ralf Habacker.
Committed on 29/09/2025 at 19:13.
Pushed by habacker into branch 'master'.

Fix moving association widgets

In the previous version, the movement of the association
widgets was broken and has now been fixed.
FIXED-IN:25.08.2

M  +15   -32   umbrello/umlwidgets/associationwidget.cpp

https://invent.kde.org/sdk/umbrello/-/commit/5cad551722374ce3735e59984e43c1a46c3021b8
Comment 2 Ralf Habacker 2025-11-17 12:45:11 UTC
Git commit 75e3745012eb55e91886a752e71f67aa13ba9339 by Ralf Habacker.
Committed on 30/09/2025 at 05:13.
Pushed by habacker into branch 'release/25.08'.

Fix moving association widgets

In the previous version, the movement of the association
widgets was broken and has now been fixed.
FIXED-IN:25.08.2
(cherry picked from commit 5cad551722374ce3735e59984e43c1a46c3021b8)

M  +15   -32   umbrello/umlwidgets/associationwidget.cpp

https://invent.kde.org/sdk/umbrello/-/commit/75e3745012eb55e91886a752e71f67aa13ba9339