Bug 320521

Summary: Get rid of old setupPopupMenu / slotRemovePopupMenu API
Product: [Applications] umbrello Reporter: Andi Fischer <andi.fischer>
Component: generalAssignee: Andi Fischer <andi.fischer>
Status: RESOLVED FIXED    
Severity: minor CC: ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0

Description Andi Fischer 2013-05-31 08:38:14 UTC
Most widgets still uses the old setupPopupMenu / slotRemovePopupMenu style for showing context menus.
Instead it should use the Qt API event handler contextMenuEvent() method.


Reproducible: Always

Steps to Reproduce:
1. Open umbrello/widgets/umlwidget.h and look for "setupPopupMenu(".
2. In source tree grep for method "setupPopupMenu(".
3.
Actual Results:  
You will find several locations where this methods have been used.

Expected Results:  
Where a context menu is shown the contextMenuEvent method should be used.

See QGraphicsItem API.
Comment 1 Andi Fischer 2013-06-13 18:26:19 UTC
Fixed in
94137ee9fe30c2d5a402ab37ea50e61daaa31bb4