559 |
559 |
560 if not self.__menu.isEmpty(): |
560 if not self.__menu.isEmpty(): |
561 pos = evt.globalPos() |
561 pos = evt.globalPos() |
562 self.__menu.popup(QPoint(pos.x(), pos.y() + 1)) |
562 self.__menu.popup(QPoint(pos.x(), pos.y() + 1)) |
563 |
563 |
|
564 # TODO: change all lambda functions to partials to fix an issue |
564 def __createContextMenu(self, menu, hitTest): |
565 def __createContextMenu(self, menu, hitTest): |
565 """ |
566 """ |
566 Private method to populate the context menu. |
567 Private method to populate the context menu. |
567 |
568 |
568 @param menu reference to the menu to be populated |
569 @param menu reference to the menu to be populated |