Bug 418397

Summary: On sequence diagrams no display of a selected object widget on the corresponding line
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.30.2 (KDE releases 19.12.2)   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 2.30.80 (KDE releases 20.03.80)
Attachments: test case

Description Ralf Habacker 2020-03-02 11:19:41 UTC
Created attachment 126544 [details]
test case

STEPS TO REPRODUCE
1. start umbrello
2. open appended file
3. open sequence diagram
4. select the left object widget
5. scroll down to the first message

OBSERVED RESULT
You cannot see that the left widget is selected

EXPECTED RESULT
There should be an indication on the line of the left widget that the related object widget is selected

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 15.1
KDE Frameworks Version: 5.49.0
Qt Version: 5.9.7
Comment 1 Ralf Habacker 2020-03-05 18:33:35 UTC
Git commit 50797b59d16126a1927addc35fe00755991547bf by Ralf Habacker.
Committed on 05/03/2020 at 18:26.
Pushed by habacker into branch 'master'.

Fix 'On sequence diagrams no display of a selected object widget on the corresponding line'

If an object widget is selected, the corresponding sequence line is
displayed with a larger line width.

It was necessary to fix a problem with QGraphicsItem::setSelected() to
implement the requested behavior. Details can be found in the
documentation of the class QGraphicsObjectWrapper.
FIXED-IN:2.30.80 (KDE releases 20.03.80)

M  +13   -0    umbrello/umlwidgets/objectwidget.cpp
M  +2    -0    umbrello/umlwidgets/objectwidget.h
M  +2    -2    umbrello/umlwidgets/umlwidget.cpp
M  +19   -2    umbrello/umlwidgets/widgetbase.cpp
M  +36   -1    umbrello/umlwidgets/widgetbase.h
M  +7    -0    unittests/CMakeLists.txt
M  +1    -1    unittests/testbase.cpp
A  +70   -0    unittests/testwidgetbase.cpp     [License: GPL (v2/3)]
A  +34   -0    unittests/testwidgetbase.h     [License: GPL (v2/3)]

https://invent.kde.org/kde/umbrello/commit/50797b59d16126a1927addc35fe00755991547bf