(self, pos)
Class ContextMenu
Class ContextMenu
Class ContextMenu
def _on_class_contextmenu(self, pos):
        """ Class ContextMenu
        """
        index = self._ObjC_classes.indexAt(pos).row()
        glbl_pt = self._ObjC_classes.mapToGlobal(pos)
        context_menu = QMenu(self)
        if index != -1:
            context_menu.addAction(
                'Breakpoint constructor', lambda: self._breakpoint_class(
                    self._ObjCclass_model.item(index, 0).text()))
            context_menu.addAction(
                'Breakpoint all methods', lambda: self._breakpoint_class_functions(
                    self._ObjCclass_model.item(index, 0).text()))
            context_menu.addSeparator()

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

        context_menu.addAction('Refresh', self._cm_refresh_classes)
        context_menu.exec_(glbl_pt)
def _on_class_contextmenu ( self , pos ) : index = self . _ObjC_classes . indexAt ( pos ) . row ( ) glbl_pt = self . _ObjC_classes . mapToGlobal ( pos ) context_menu = QMenu ( self ) if index != - 1 : context_menu . addAction ( 'Breakpoint constructor' , lambda : self . _breakpoint_class ( self . _ObjCclass_model . item ( index , 0 ) . text ( ) ) ) context_menu . addAction ( 'Breakpoint all methods' , lambda : self . _breakpoint_class_functions ( self . _ObjCclass_model . item ( index , 0 ) . text ( ) ) ) context_menu . addSeparator ( ) if self . _ObjC_classes . search_enabled : context_menu . addSeparator ( ) context_menu . addAction ( 'Search' , self . _ObjC_classes . _on_cm_search ) context_menu . addAction ( 'Refresh' , self . _cm_refresh_classes ) context_menu . exec_ ( glbl_pt )