code: def setModelData(self, editor, model, index):
          
          editor.saveToObject()
          # need to save over component object in stimulus model
          model.dataEdited()
  
          # clean up
          editor.attributesSaved.disconnect()
          if hasattr(editor, 'vocalFilesChanged'):
              editor.vocalFilesChanged.disconnect()
          editor.close()
docs: Saves the input from the editor widget to the model component.
          :qtdoc:`Re-implemented<QStyledItemDelegate.setModelData>`