parameters: (self, rect, dy)
docstring: This slot is invoked when the editors viewport has been scrolled
docstring_summary: This slot is invoked when the editors viewport has been scrolled
docstring_tokens: This slot is invoked when the editors viewport has been scrolled
function: def updateLineNumberArea(self, rect, dy):
          """ This slot is invoked when the editors viewport has been scrolled """
  
          if dy:
              self.lineNumberArea.scroll(0, dy)
              self.debugArea.scroll(0, dy)
          else:
              self.lineNumberArea.update(0, rect.y(), self.lineNumberArea.width(), rect.height())
  
          if rect.contains(self.viewport().rect()):
              self.updateMarginsWidth()
function_tokens: def updateLineNumberArea ( self , rect , dy ) : if dy : self . lineNumberArea . scroll ( 0 , dy ) self . debugArea . scroll ( 0 , dy ) else : self . lineNumberArea . update ( 0 , rect . y ( ) , self . lineNumberArea . width ( ) , rect . height ( ) ) if rect . contains ( self . viewport ( ) . rect ( ) ) : self . updateMarginsWidth ( )