Skip to content

Remove "taurus popup menu" feature and deprecate its API

Carlos Pascual requested to merge github/fork/cpascual/fix-905 into develop

The default implementation of contextMenuEvent shows the content of self.taurusMenu as a context menu. But this results in buggy behaviour when the widget already implements its own context menu (see #905 (closed) ).

Disable this feature and deprecate the "taurus popup menu" API.

The old behaviour can still be attained by explicitly reimplementing the contextMenuEvent method as:

   def contextMenuEvent(self, event):
       self.taurusMenu.exec_(event.globalPos())
```

Fixes #905

Merge request reports