(self, pos)
Method ContextMenu
Method ContextMenu
Method ContextMenu
def _on_method_contextmenu(self, pos):
        """ Method ContextMenu
        """
        index = self._ObjC_methods.indexAt(pos).row()
        glbl_pt = self._ObjC_methods.mapToGlobal(pos)
        context_menu = QMenu(self)
        if index != -1:
            context_menu.addAction(
                'Breakpoint method', lambda: self._breakpoint_method(
                    self._ObjCmethod_model.item(index, 0).text()))
            context_menu.addSeparator()

            if self._ObjC_methods.search_enabled:
                context_menu.addSeparator()
                context_menu.addAction(
                    'Search', self._ObjC_methods._on_cm_search)

        context_menu.addAction('Refresh', self._cm_refresh_methods)
        context_menu.exec_(glbl_pt)
def _on_method_contextmenu ( self , pos ) : index = self . _ObjC_methods . indexAt ( pos ) . row ( ) glbl_pt = self . _ObjC_methods . mapToGlobal ( pos ) context_menu = QMenu ( self ) if index != - 1 : context_menu . addAction ( 'Breakpoint method' , lambda : self . _breakpoint_method ( self . _ObjCmethod_model . item ( index , 0 ) . text ( ) ) ) context_menu . addSeparator ( ) if self . _ObjC_methods . search_enabled : context_menu . addSeparator ( ) context_menu . addAction ( 'Search' , self . _ObjC_methods . _on_cm_search ) context_menu . addAction ( 'Refresh' , self . _cm_refresh_methods ) context_menu . exec_ ( glbl_pt )