code: def insertFromMimeData(self, data):
          
          undoObj = UndoPaste(self, data, self.pasteCnt)
          self.pasteCnt += 1
          self.qteUndoStack.push(undoObj)
docs: Paste the MIME data at the current cursor position.
  
          This method also adds another undo-object to the undo-stack.